3.10. Using the Satellite API to Obtain SSH Keys for Remote Execution
To use the Satellite API to download the public key from Capsule, complete this procedure on each target host.
Procedure
On the target host, create the
/.sshdirectory to store the SSH key:# mkdir ~/.sshDownload the SSH key from Capsule:
# curl https://capsule.example.com:9090/ssh/pubkey >> ~/.ssh/authorized_keysConfigure permissions for the
~/.sshdirectory:# chmod 700 ~/.sshConfigure permissions for the
authorized_keysfile:# chmod 600 ~/.ssh/authorized_keys