URL: https://linuxfr.org/forums/linux-debutant/posts/pb-ssh-password Title: pb ssh + password Authors: frederic_dumoulin Date: 2015年10月21日T17:01:10+02:00 License: CC By-SA Tags: Score: 1 Bonjour, J'essaye de me connecter à un serveur NAS via ssh, mais ssh me demande toujours le mot de passe. J'ai 2 utilisateurs, un perso et git pour lesquels j'ai fait les mêmes manips (ssh-keygen + ssh-copy-id), j'ai vérifier les droits du répertoire .ssh, les uid et gid des 2 utilisateurs. Je ne comprends pas pourquoi le ssh utilisateur se connecte bien sans demander le mot de passe alors que la connexion git le demande systématiquement. Voici la fin du log de ssh -vvv : debug1: Host 'atlas' is known and matches the ECDSA host key. debug1: Found key in /home/git/.ssh/known_hosts:1 debug1: ssh_ecdsa_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /home/git/.ssh/id_rsa (0x7f8bf295e860), debug2: key: /home/git/.ssh/id_dsa ((nil)), debug2: key: /home/git/.ssh/id_ecdsa ((nil)), debug2: key: /home/git/.ssh/id_ed25519 ((nil)), debug1: Authentications that can continue: publickey,password debug3: start over, passed a different list publickey,password debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/git/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,password debug1: Trying private key: /home/git/.ssh/id_dsa debug3: no such identity: /home/git/.ssh/id_dsa: No such file or directory debug1: Trying private key: /home/git/.ssh/id_ecdsa debug3: no such identity: /home/git/.ssh/id_ecdsa: No such file or directory debug1: Trying private key: /home/git/.ssh/id_ed25519 debug3: no such identity: /home/git/.ssh/id_ed25519: No such file or directory debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: ,password debug3: authmethod_is_enabled password debug1: Next authentication method: password Merci de votre aide Fred