Here is what I did:
client: => generated 2 keys with ssh-keygen -t rsa
=> sent id_rsa.pub to server (with scp) and put it to ~/.ssh/authorized_keys
Server: in /etc/ssh/shd_config:
=> uncommented AuthorizedKeysFile %h/.ssh/authorized_keys
=> PasswordAuthentication no
=> UsePAM no
And I restarted the server: service sshd restart
Problem: when I try to connect "ssh user@IP_Server -v
" and after I've put my passphrase.
I get the following logs:
Enter passphrase for key '/root/.ssh/id_rsa':
debug3: sign_and_send_pubkey: RSA SHA256:HMjzNl/zNrs...3m6SYDQ64ZoHeL6k
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519
debug3: no such identity: /root/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).
Do you have any idea where this logs comes from ?
Cheers