Once a key is in your account, choose it when you create a resource, then connect with the private key that matches it.
Choose the key when you create a resource
Section titled “Choose the key when you create a resource”When you create an instance, a virtual machine, or a training cluster, choose one or more of your keys under SSH Keys. A key you have not added yet can be added right there, or beforehand; see Add an SSH key. SSH connects through port 22, so the resource also needs a security group that opens that port; see Attach or detach a security group. See Create an instance and Create a Slurm Cluster.
Connect
Section titled “Connect”Connect from the computer that holds the private key file. If you made the key on your computer
with ssh-keygen:
ssh -i ~/.ssh/id_ed25519 root@<ip-address>If you created the key in the browser, first set permissions on the downloaded private key file:
chmod 600 <private-key.pem>Then connect:
ssh -i <private-key.pem> root@<ip-address><ip-address>is the IP address of the instance or cluster.<private-key.pem>is the path to your downloaded private key file.
chmod 600 makes the file readable only by you, which SSH needs before it will use a private
key file.
TIR instances and the login node of a Slurm Cluster use the user root. The user name can depend
on the image the resource runs, so if your image’s documentation names another user, use that one.
For an instance’s connection details, see
Connect to an instance over SSH; for
a Slurm Cluster, see Connect to a cluster.
Was this page helpful?