https://www.thegeekdiary.com/centos-rhel-how-to-setup-passwordless-ssh-login/Generate authentication key
If an SSH authentication-key file does not exist, generate one by running the ssh-keygen command. When prompted for a passphrase, use a blank passphrase if fully password-less login is required:
Générer une clé d'authentification
Si un fichier de clé d'authentification SSH n'existe pas, générez-le en exécutant la commande ssh-keygen. Lorsque vous êtes invité à saisir une phrase secrète, utilisez une phrase secrète vierge si une connexion sans mot de passe est requise:
J'ai fait la commande mais en étant root.
Je n'ai pas d’utilisateur sur ce serveur à part faxadmin root et admin.
Copy the public key to remote host
Use the ssh-copy-id command to install the public half of the newly-generated authentication key into a specific user’s home directory on the remote host. The ssh-copy-id command will then automatically append the identity information into the ~/.ssh/authorized_keys file for the specified user on the remote host (creating ~/.ssh and~/.ssh/authorized_keys if necessary).
Copiez la clé publique sur l'hôte distant
Utilisez la commande ssh-copy-id pour installer la moitié publique de la clé d'authentification nouvellement générée dans le répertoire de base d'un utilisateur spécifique sur l'hôte distant. La commande ssh-copy-id ajoutera alors automatiquement les informations d'identité dans le fichier ~/.ssh/authorized_keys pour l'utilisateur spécifié sur l'hôte distant (en créant ~/.ssh and~/.ssh/authorized_keys si nécessaire).
Je fais comment?
Anne