SSH tunnel to a certain node: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
(Created page with "SSH tunnel to a certain node")
 
(Use ProxyJump, makes it easier than port forwarding.)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
SSH tunnel to a certain node
 
* Submit a slurm job, or start an interactive job on a node.
 
sinteractive
 
* Check on which node this job has landed
squeue -u $USER -l
* Add this to your machines ssh config in ~/.ssh/config
Host node*,gpu*
  ProxyJump login.anunna.wur.nl
  User your_user_id
 
* You can now use your local terminal connecting to e.g. node201 directly, by:
 
ssh node201
 
* In VSCode :
in the VSCode GUI -> Open a remote Window -> Connect to Host...,type in the nodename. After a few seconds, VSCode is connected to the node.
 
Please be aware that once the slurm job finishes, the connection will be lost and your running processes will be killed.
Besides that, you are limited to the amount of RAM that you requested.

Latest revision as of 16:03, 16 April 2024

  • Submit a slurm job, or start an interactive job on a node.
sinteractive
  • Check on which node this job has landed
squeue -u $USER -l
  • Add this to your machines ssh config in ~/.ssh/config
Host node*,gpu*
  ProxyJump login.anunna.wur.nl
  User your_user_id
  • You can now use your local terminal connecting to e.g. node201 directly, by:
ssh node201
  • In VSCode :
in the VSCode GUI -> Open a remote Window -> Connect to Host...,type in the nodename. After a few seconds, VSCode is connected to the node.

Please be aware that once the slurm job finishes, the connection will be lost and your running processes will be killed. Besides that, you are limited to the amount of RAM that you requested.