This post is following this question : Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys .
The issue as exposed there is solved (about files modes of the
.sshfolder.But an other issue persists so I create a new question :
When I try to login (with verbose options), all seems to work fine but at the end, here is what happened :
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/remi/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/remi/.ssh/id_dsa
debug1: Trying private key: /home/remi/.ssh/id_ecdsa
debug1: Trying private key: /home/remi/.ssh/id_ed25519
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
I don't understand because these lines seems to be a non-sense for me :
we sent a publickey packet, wait for replywe did not send a packet, disable method
we did not send a packet, disable methodfor dsa andwe send a publickey packet, wait for replyfor rsa. How absolutely certain are you the keys on server and client are correctly paired??authorized_keysfile... Does your SSH server run under another account than root?debug2: key: /home/remi/.ssh/id_rsa (0x7fb7031da7e0). That might have been in the output above the point you posted. SetStrictModes=noon the server and try again. After testing, remove it again. At least it will tell us which direction the problem lies.