ssh auto connexion : agent admitted failure to sign using the key
Voici ce qu’il m’est arrivé : on a changé mon serveur d’endroit et de là, j’avais le message :
Agent admitted failure to sign using the key.
La solution trouvée qui a fonctionné est ici.
Je mets en gras les ordres shell à faire pour que ça fonctionne :
olivier@local-host$ ssh-agent $SHELL
olivier@local-host$ ssh-add -L
The agent has no identities.
olivier@local-host$ ssh-add
Identity added: /home/jsmith/.ssh/id_rsa (/home/jsmith/.ssh/id_rsa)
olivier@local-host$ ssh-add -L
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsJIEILxftj8aSxMa3d8t6JvM79DyBV
aHrtPhTYpq7kIEMUNzApnyxsHpH1tQ/Ow== /home/olivier/.ssh/id_rsa
olivier@local-host$ ssh-copy-id -i remote-host
olivier@remote-host's password:
Now try logging into the machine, with "ssh 'remote-host'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
[Note: This has added the key displayed by ssh-add -L]