agent, and sudo needs no password. The response includes the port, the connect command, and the private key.
Turn SSH on
The response includes the user, port, connect command, and private key. Save the private key with permissions600, then connect with connect_cmd.
Store private keys securely and set file permissions to
600.Replace the key
Replace the SSH key when it may have been exposed, or on a regular schedule. Connect with the new command and remove the old key file.- Call
enable_sshwithregenerate_keys=True(CLI:--regenerate-keys). - Save the new private key (permissions
600) and give it to the people who should connect. - Remove the old key files.
- Connect with the new
connect_cmd.