PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.security.ssh > Failure to authenticate
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.security.ssh SSH secure remote login and tunneling tools.

Failure to authenticate

Réponse
 
LinkBack Outils de la discussion
Vieux 18/07/2007, 23h03   #1
SQ
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Failure to authenticate

SSH server runs OpenSSH 3.5 on Solaris 8
SSH nclient runs OpenSSH 4.2 on HP-UX 11.23

Even after I put the public key of the client in $HOME/.ssh/
authorized_keys in the server and made sure the permissions where 700
or less, I still get asked for the password. DNS doesn't seem to be an
issue. Why is this happening?


# ssh -v -v -v bava

debug1: Host 'bava' is known and matches the DSA host key.
debug1: Found key in /home/user1/.ssh/known_hosts:1
debug2: bits set: 506/1024
debug1: ssh_dss_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: /home/user1/.ssh/id_rsa (00000000)
debug2: key: /home/user1/.ssh/id_dsa (4004e8e0)
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred 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: Trying private key: /home/user1/.ssh/id_rsa
debug3: no such identity: /home/user1/.ssh/id_rsa
debug1: Offering public key: /home/user1/.ssh/id_dsa
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
user1@bava's password:

  Réponse avec citation
Vieux 19/07/2007, 04h19   #2
Richard E. Silverman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Failure to authenticate


http://www.snailbook.com/faq/publick...auth.auto.html

--
Richard Silverman
res@qoxp.net

  Réponse avec citation
Vieux 19/07/2007, 15h51   #3
SQ
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Failure to authenticate

The /var/log/auth file on SSH server (Solaris 8)

What does it mean, "Failed publickey"


Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] Connection
from xxx.xxx.xxx.xxx port 61587
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] Enabling
compatibility mode for protocol 2.0
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] WARNING: /usr/
local/etc/primes does not exist, using old prime
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] Failed none
for user1 from xxx.xxx.xxx.xxx port 61587 ssh2
Jul 19 10:34:20 bava sshd[22662]: [ID 800047 auth.info] Failed
publickey for user1 from xxx.xxx.xxx.xxx port 61587 ssh2



  Réponse avec citation
Vieux 19/07/2007, 16h24   #4
SQ
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Failure to authenticate

I figured out what the issue was. Because I am using protocol 2,
the public key needed to go to $HOME/.ssh/authorized_keys2
file, not authorized_keys.


  Réponse avec citation
Vieux 19/07/2007, 16h34   #5
Darren Dunham
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Failure to authenticate

SQ <onestatusquo@yahoo.com> wrote:
> I figured out what the issue was. Because I am using protocol 2,
> the public key needed to go to $HOME/.ssh/authorized_keys2
> file, not authorized_keys.


What version of OpenSSH are you using on the server?

--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
  Réponse avec citation
Vieux 19/07/2007, 16h46   #6
Darren Dunham
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Failure to authenticate

Darren Dunham <ddunham@redwood.taos.com> wrote:
> SQ <onestatusquo@yahoo.com> wrote:
>> I figured out what the issue was. Because I am using protocol 2,
>> the public key needed to go to $HOME/.ssh/authorized_keys2
>> file, not authorized_keys.


> What version of OpenSSH are you using on the server?


Sorry, just found the 3.5 in your earlier post.

From OpenSSH 3.0 forward, you shouldn't need to use 'authorized_keys2'.
All keys (including version 2 keys) should function in the
'authorized_keys' file.

--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h14.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13378 seconds with 14 queries