SSH Private-Public Key Pair
SSH keys can be used to authenticate to the cluster. This is the recommended method and allows you to securely SSH to the compute client without entering a passphrase.
To generate key files ~/.ssh/id_rsa
and ~/.ssh/id_rsa.pub
on your Linux/Unix/MacOS system, use the command ssh-keygen
:
> ssh-keygen -f ~/.ssh/id_rsa_compute
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/${compute_username}/.ssh/id_rsa_compute.
Your public key has been saved in /Users/${compute_username}/.ssh/id_rsa_compute.pub.
The key fingerprint is:
SHA256:P10QiInCIHPUMeIiiP/wtOQwW1D6eItQ75o3pDn+vKk ${compute_username}@macbook.local
The key's randomart image is:
+---[RSA 2048]----+
|o.=++. . o .. |
|o= ++.. o . . |
|= = . . |
|.+ = . |
|. * B S . |
| . /.o . . . |
| o+B o . |
| ++o. . |
| .E==o |
+----[SHA256]-----+
To avoid typing the passphrase for your key, use ssh-agent:
> eval `ssh-agent`
Agent pid 76698
Add your key to the agent:
> ssh-add ~/.ssh/id_rsa_compute
Enter passphrase for /Users/${compute_username}/.ssh/id_rsa_compute:
Now copy this SSH ID to the compute client:
You are now able to securely SSH to the compute client without entering a passphrase.
, multiple selections available,
Related content
SSH Private-Public Key Pair
SSH Private-Public Key Pair
More like this
Compute Quick Start
Compute Quick Start
More like this