ssh-keygen
command to generate SSH public and private key files. By default, these files are created in the ~/.ssh directory. You can specify a different location, and an optional password (passphrase) to access the private key file. If an SSH key pair with the same name exists in the given location, those files are overwritten.--generate-ssh-keys
option. The key files are stored in the ~/.ssh directory unless specified otherwise with the --ssh-dest-key-path
option. The --generate-ssh-keys
option will not overwrite existing key files, instead returning an error. In the following command, replace VMname and RGname with your own values:cat
command, replacing ~/.ssh/id_rsa.pub
with the path and filename of your own public key file if needed:pbcopy
. Similarly in Linux, you can pipe the public key file to programs such as xclip
.--ssh-key-values
option. In the following command, replace VMname, RGname, and keyFile with your own values:--ssh-key-values sshkey-desktop.pub sshkey-laptop.pub
.ssh-keygen
to store the keys in a safe location so you can bypass the login prompt when connecting to your instances.ssh-keygen
utility prompts you to indicate where to store the key.ssh-keygen
utility prompts you for a passphrase.id_rsa
file in the .ssh
directory and is used to verify the public key you use belongs to the same Triton Compute Service account.Never share your private key with anyone! |
---|
id_rsa.pub
;file and is the key you upload to your Triton Compute Service account. You can save this key to the clipboard by running this: Openssl create crt and key.id_rsa
) does not match the public key stored with your Triton Compute Service account.triton
and CloudAPI as well as the triton-docker
commandline tool.