0

I would like to tramp into a compute node of an HPC cluster. That requires an ssh connection to a login node and then using srun to request an interactive session. If using a terminal, all I need is to set up the following on my .ssh/config, and then ssh computenode gets me directly to the compute node:

Host computenode
     User user
     HostName loginnode.edu
     IdentityFile ~/.ssh/id_loginnode
     RequestTTY yes
     RemoteCommand srun --partition=partition --account=account --gpus=1  --pty /usr/bin/zsh

However, when connecting via TRAMP this doesn't work, because apparently TRAMP cannot be used with "RemoteCommand".

Question: How can I use TRAMP with RemoteCommand, or how can I have Tramp connect directly to an HPC compute node with srun?

Note: a similar question was asked around here with a proposal to connect to an HPC by defining a "qsub" tramp-method; but I tried to define something similar for "srun" and it does not seem to work (but if anyone has a counter-example I'd be happy to give it a try).

Daniel
  • 3,563
  • 16
  • 41

0 Answers0