Port forwarding using MobaXTerm (examples for iris)
- Connect to HPC normally
- Start a job with the parameters that you need (e.g. for a full compute node in the interactive partition for 4h) :
1
|
|
Remember the hostname of the node, for example :
[<yourlogin>@iris-003 ~]$
- Run your jupyter notebook / tensorboard / your program that requires port forwarding on specific port!
For example,
$ jupyter notebook --port=2222
$ tensorboard --logdir=/tmp --port=2222
- In MobaXterm:
Tools
->MobaSSHTunnel
Configure it like this:
- Adapt the IP with the one of your reserved node (or put the hostname of the node instead : iris-003)
- Put the port of the remote server, where the application is running (
2222
in our example) - Adapt the username with your username (
cparisot
in our example) - Click on Save
- Click on the network adapter button and choose
127.0.0.1
- Click on the key button and choose your private key
- Click on the green arrow to start the tunnel
- Access locally via http://127.0.0.1:1111/
Local port forwarding was used: connections from the SSH client are forwarded via the SSH server, then to a destination server. More about port forwarding on ubuntu.com website