These instructions assume an ssh client at least as recent as OpenSSH 7.3, otherwise the ProxyJump will fail.
- set up a new host in your
~/.ssh/configfile (changerorydmto your own username):
Host tartarus
HostName n70
ProxyJump qmaster
User rorydm
LocalForward 8888 localhost:9999
this will let you use e.g. ssh tartarus to connect directly to n70 without having to first log in to qmaster
you can then use the tartarus host like a normal host for port forwarding.
say you set up your jupyter notebook on n70 to serve on port 9999.
- use
ssh tartaruson you local machine to log in to n70,- this will give you an interactive ssh session, while forwarding port 9999 on n70 to port 8888 on your local machine.
- on n70, in the interactive ssh session, issue
jupyter notebook - on you local machine, you should be able to see the notebook at
http://localhost:8888/tree
i think it'd be possible to be fancier, e.g run jupyter notebook automatically on n70 etc, but this is pretty good for now.