Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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:

    Code Block
    languagetext
    themeRDark
    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.

  2. Once you have a valid allocation on the system, you can retrieve the node list with the following command:

    Code Block
    languagebashtext
    themeRDark
    squeue -j <jobid> -o "%N"


  3. Then you will be able to run the command ssh to access one of the allocated nodes as follows:

    Code Block
    languagebashtext
    themeRDark
    ssh <nodeid>

    Please modify <jobid> and <nodeid>, as they are user specific.

...