Last updated: April 7, 2022
VJTI uses an OpenVPN server for providing access to VJTI's private network over the public internet. If you want to access any services from VJTI's network, like the DGX station or the library system.
To be able to authenticate to the VPN server, you need to get credentials from the system administrator. Contact a professor for details.
Once you have VPN credentials, you can connect to the VPN using a VPN client. 172.18.33.4 is the IP address of the DGX machine in CE&IT Department.
You can also install the graphical interface. However this document will be not be using this.
.ovpn
file, which is an OpenVPN client config file.You will be asked to enter your VPN credentials. If after a while you see some ip route add
logs and a log with “Initialization Sequence Completed”, then you’re connected to the VPN.
Make sure that you're connected to the VPN. Now, to SSH into the DGX station, use:
This will prompt you for the password for <username>
, and you're in!
Note that this username password pair is for your UNIX account on DGX, not the VPN; they're different.
nvcr.io/nvidia/pytorch:22.03-py3
. To start a docker container based on this image:This will start up a container with Python3 and PyTorch all setup. Go crazy.
Notes:
--gpus all
, make sure that you don't use a GPU that someone else is using. To check this, use nvidia-smi
to see which GPUs are being used and which processes are using them.Here are some options:
Use commands like ps
, top
, nvidia-smi
, grep
, less
and their various flags to make sense of what's happening. Happy Linux-ing!
Warning: This method will leave the credentials in plaintext on the filesystem. Use this only if you’re sure that that’s secure.
.ovpn
file, make a plaintext file dgx-vpn-credentials.txt
with username and password on two different lines, like:.ovpn
file, find the line with auth-user-pass
. Append that line with the name of the credentials file. For example:Pro-tip: make a bash function or alias to really speed up the process of connecting to the VPN.
ssh-keygen
. For not entering a password every time, don't enter a passphrase, leave it empty./home/user/.ssh/dgx
. Do change the name or you might end up replacing an existing key-pair.ssh-copy-id
to copy the identity file onto SSH. Make sure that you're connected to the VPN before running this command.