First steps

First, you need access to two servers. Some compute server for storing project files and running your codes. This compute server is accessible from inside the institute network only. To connect to this server from a remote location, we need another internet-facing jump-server to connect through (like a proxy server).

Accounts

  1. Compute server: user1@10.15.30.21 (port 9001)
  2. Jump server: user2@cselab.school.ac.in (port 9001)

Use Putty (Windows) or Linux CLI (Preferred)

If you are using Linux or WSL (Windows subsystem linux), this command should work. [If you have Putty, Google for how to connect through a jump server using Putty.]

ssh -J user2@cselab.school.ac.in:9001 user1@10.15.30.21 -p 9001

Local Port Forwarding through Jumphost

If you are running JupyterLab or some other service on the compute server and want to access it on your local machine, you would need to do a local port forwarding. This will forward your requests to the address 127.0.0.1:[PORT] to the port on the compute server (e.g. 10.15.30.21:[PORT]). Use the following command for making an SSH connection along with a local port forwarding.

ssh -J bishal@cnerg.iitkgp.ac.in:8201 -L12345:127.0.0.1:12345 bsantra@10.14.9.57 -p 8201

Now, open your browser and connect to 127.0.0.1:12345. Here, I have assumed that your program (jupyter lab) is running on port 12345 of the compute server.