DGX SSH
NVIDIA DGX Cloud only!
This page provides resources for using the NVIDIA DGX Cloud, and is not intended for HiPerGator users!
SSH access to the NVIDIA DGX Cloud requires the use of SSH keys. You will need to:
- Create an SSH key pair on your computer.
- Add the public key to your
~/.ssh/authorized_keys
file on the NVIDIA DGX Cloud using an OOD terminal. - SSH using the host:
dgxcloud-1.rc.ufl.edu
ordgxcloud-2.rc.ufl.edu
Step 1: Create an SSH key pair on your local computer¶
- Open a Terminal on your computer
-
Paste the text below, replacing the email used in the example with your email address.
ssh-keygen -t ed25519 -C "your_email@example.com"
This creates a new SSH key, using the provided email as a label.
> Generating public/private ed25519 key pair.
When you're prompted to "Enter a file in which to save the key", you can press Enter to accept the default file location or change the name if needed.
-
At the prompt, type a secure passphrase. This is important to protect your account from unauthorized access. Anyone with the private key will be able to log into the the NVIDIA DGX Cloud as you.
-
Use the cat command to display the contents of the public key (ending in
.pub
):cat ~/.ssh/id_ed25519.pub # Displays the contents of the public key created above.
You will see something like:
ssh-ed25519 AAAAC3NzaC1lDZI3NTE5AAAAIF5iq9uDYRDFgZYUBPy0vnJNMe/nGkVWOl/hwAJorSHE magitz@ufl.edu
-
Copy that line of text. That is the public key that you will add to your
~/.ssh/authorized_keys
file on the NVIDIA DGX Cloud using an OOD terminal.
Step 2: Add the public key to your authorized_keys file¶
- Log into the NVIDIA DGX Cloud at: https://dgxcloud-ood.rc.ufl.edu/ (requires UF network! )
- Use the Clusters menu, and select ">_ DGX Cloud Shell Access"
-
Edit the
~/.ssh/authorized_keys
to add your public key. The example below uses the text editornano
, but you can use the editor of your choice.nano ~/.ssh/authorized_keys
-
Make sure not to change the line with the existing key.
- Use your arrow key to go down the the next line, and paste the contents of the public key that you copied above.
- If you are using
nano
, to save your changes, use Ctrl-O, Enter to keep the same filename, then exit with Ctrl-X.
Step 3: Connect to the NVIDIA Cloud using your SSH key¶
Note
This is the only part of the process that will be needed once the other steps are completed.
- Open a terminal (or your SSH application of choice)
-
Connect using the
-i
flag to point to the private key file to use. Substitute your GatorLink username for GATORLINK.ssh -i ~\.ssh\id_ed25519 GATORLINK@dgxcloud-1.rc.ufl.edu
-
If this is the first time you are connecting, you will need to type
yes
to trust the host.
Do not use the VSCode/PyCharm/Spyder SSH plugins!
These plugins put you on the login server, and not the computer servers. You will not have access to a GPU on the login servers. It is very easy to consume lots of CPU resources using the plugins and your account may be suspended.