Re: Probleme de connexion sans mo de passe avec SSH

Top Page

Reply to this message
Author: Olivier Desportes
Date:  
To: guilde
Subject: Re: Probleme de connexion sans mo de passe avec SSH
La suite de l'authentification ("debug2: we did not send a packet,
disable method" ?) :

debug3: check_host_in_hostfile: filename /var/www/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 3
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /var/www/.ssh/known_hosts:3
debug2: bits set: 509/1024
debug1: ssh_rsa_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: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: id_rsa.pub (0x55e3d0)
debug2: key: /var/www/.ssh/id_rsa (0x564170)
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred
gssapi-keyex,gssapi-with-mic,gssapi,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 public key: id_rsa.pub
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: /var/www/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
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


Le 4 novembre 2009 12:52, Christian Marillat <marillat@???> a écrit :
> Olivier Desportes <olivier.desportes@???> writes:
>
>> Bonjour
>
> Bonjour,
>
>> J'ai besoin de faire se connecter par ssh mon utilisateur système
>> apache (www-data) sur le localhost.
>> A priori pas de problème, cet utilisateur est déjà capable de se
>> connecter sur une autre machine de cette manière.
>> Cependant, ça ne marche pas. J'ai eu beau tenter avec un id_rsa.pub et
>> un id_dsa.pub dans respectivement un fichier authorized_keys et
>> authorized_keys2, ca ne veut rien savoir, je suis toujours prompté
>> pour le mot de passe.
>>
>> En mode debug, ssh se plaint : '
>> debug3: Not a RSA1 key file /var/www/.ssh/id_rsa.
>> debug3: key_read: missing whitespace
>> ...'
>
> 'missing whitespace' un mauvais copié/collé ?
>
> Le mieux c'est d'uiliser ssh-copy-id.
>
> Christian
> --
>       MicroRepair - Assistance et cours - Informatique à domicile
>   Tél. 09.50.76.18.28 - Tél. mobile 06.75.39.34.97 Fax. 09.55.76.18.28
>             http://www.microrepair.fr - contact@???
>
>