Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

Volet
Host narval
   Hostname narval.computecanada.ca
   User username
   ControlPath ~/.ssh/cm-%r@%h:%p
   ControlMaster auto
   ControlPersist 10m

Replace 'username' with your username on Narval. The 'narval' above is just a name given to this "host". You can put here any name you like that does not already exist in your ~/.ssh/config.

...

Again, for more information have a look at their wiki:  Automation in the context of multifactor authentication under "Using the right key".

Create host to simplify commands

You can create a "host" which includes the name of your private SSH key to avoid having to put it in every command. For example, add the following lines to your ~/.ssh/config file, so they get picked up by any ssh client invocation:

Volet
Host narr
    Hostname robot.narval.alliancecan.ca
    User username
    Identityfile full_name_of_your_private_key
    Identitiesonly yes
    Requesttty no

The 'narr' above is just a name given to this "host". You can put here any name you like that does not already exist in your ~/.ssh/config. I chose 'narr' for NARval Robot.
Replace 'username' with your username on Narval and 'full_name_of_your_private_key ' with the name and directory of your private SSH key, for example: ~/.ssh/id_ed25519_transfer

Once you added the above to your ~/.ssh/confi your command to transfer data from Narval would look like this:

Volet
rsync narr:source destination