<Gerard.Vidal<at>ens-lyon.fr> <[email protected]> <eric.lejan(at)ac-rouen.fr> <Charles-Henri.Eyraud<at>ens-lyon.fr> © cd .ssh ls id_rsa id_rsa.pub known_hosts ssh-keygen -t rsa $ ssh-keygen -t rsa mymachine $ ssh-keygen -t rsa -b 4096 Generating public/private rsa key pair. Enter file in which to save the key (/home/mlx/.ssh/id_rsa): --taper ici le nom du fichier avec le chemin complet ou laisser l'option par défaut --Enter passphrase (empty for no passphrase): --taper ici une passphrase avec minuscules, majuscules, chiffres, caractères spéciaux long --Enter same passphrase again: --taper ici la même passphrase --Your identification has been saved in /home/mlx/.ssh/id_rsa. --Si le choix par défaut a été utilisé --Your public key has been saved in /home/mlx/.ssh/id_rsa.pub. The key fingerprint is: 5c:d9:d8:c5:3d:8d:0b:10:33:42:9c:83:45:a1:d0:61 name@mamachine cat ~/.ssh/id_rsa.pub | ssh [email protected] "cat - >> ~/.ssh/authorized_keys" ssh-copy-id -i .ssh/GV-id_rsa.pub [email protected] /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys [email protected]'s password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh '[email protected]'" and check to make sure that only the key(s) you wanted were added.
© Copyright 2024