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.
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 the ssh
command line (-o AddKeysToAgent=yes
) or in your configuration file .ssh/config
. You can adapt the template below:
AddKeysToAgent yes ForwardAgent yes |
The SSH option ForwardAgent
is 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 ssh
to access one of the allocated nodes as follows:
ssh <nodeid> |
Please modify <jobid>
and <nodeid>
, as they are user specific.
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|