J’ai besoin de se connecter à localhost avec SSH sans mot de passe, la façon traditionnelle de le faire (avec des clés publiques) ne fonctionne pas.
user@Ordi:~$ ssh-copy-id -i localhost
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is e2:37:b1:6f:35:a9:22:1b:5e:5f:d6:71:bd:b6:70:2a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
user@localhost's password:
Now try logging into the machine, with "ssh 'localhost'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
Comme vous pouvez le voir dans la dernière commande, le mot de passe est toujours demandé ! Comment puis-je résoudre ce problème ?