Users that have set up the passwordless access to CSCS computing systems with a SSH key pair will be able to connect via ssh to compute nodes interactively, during a valid Slurm allocation.
Step-by-step guide
Make sure that your keys are added to the SSH agent: openssh (7.2 or newer) takes care of that through the option
AddKeysToAgent, either on thesshcommand line (-o AddKeysToAgent=yes) or in your configuration file.ssh/config. You can adapt the template below:AddKeysToAgent yes ForwardAgent yes
The SSH option
ForwardAgentis equivalent to the command line option-A, which enables forwarding of the authentication agent connection: it can also be specified on a per-host basis in the configuration file.Once you have a valid allocation on the system, you can retrieve the node list with the following command:
squeue -j <jobid> -o "%N"
Then you will be able to run the command
sshto access one of the allocated nodes as follows:ssh <nodeid>
Please modify
<jobid>and<nodeid>, as they are user specific.