passwordless login using ssh

From: degz (sudeepsv@rediffmail.com)
Date: 02/27/03

  • Next message: Darren Dunham: "Re: x11 apps traffic not encrypted"
    From: sudeepsv@rediffmail.com (degz)
    Date: 27 Feb 2003 07:30:20 -0800
    
    

    hi

    i am trying to achieve passwordless logins between two linux boxes

    Red Hat Linux release 7.1 (Seawolf)Kernel 2.4.2-2 on an i686
    with OpenSSH_2.5.2p2, SSH protocols 1.5/2.0, OpenSSL 0x0090600f

    and Red Hat Linux release 7.2 (Enigma)Kernel 2.4.7-10 on an i686
    with OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f

    This is what I am trying
    $ ssh-keygen -t dsa
    # Copy ~/.ssh/id_dsa.pub to the remote machine
    # and on the remote machine
    $ cat ~/id_dsa.pub >> ~/.ssh/authorized_keys2

    But the authentication is falling over to password authentication.
    please find the ssh log below, What is going wrong ?

    [lehibt@MYSSD14981 lehibt]$ ssh -l venky 192.168.124.24 -v
    OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug1: Seeding random number generator
    debug1: Rhosts Authentication disabled, originating port will not be trusted.
    debug1: restore_uid
    debug1: ssh_connect: getuid 503 geteuid 0 anon 1
    debug1: Connecting to 192.168.124.24 [192.168.124.24] port 22.
    debug1: temporarily_use_uid: 503/504 (e=0)
    debug1: restore_uid
    debug1: temporarily_use_uid: 503/504 (e=0)
    debug1: restore_uid
    debug1: Connection established.
    debug1: read PEM private key done: type DSA
    debug1: read PEM private key done: type RSA
    debug1: identity file /home/lehibt/.ssh/identity type 0
    debug1: identity file /home/lehibt/.ssh/id_rsa type -1
    debug1: identity file /home/lehibt/.ssh/id_dsa type -1
    debug1: Remote protocol version 1.99, remote software version OpenSSH_2.5.2p2
    debug1: match: OpenSSH_2.5.2p2 pat ^OpenSSH_2\.5\.[012]
    Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_2.9p2
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST_OLD sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    debug1: dh_gen_key: priv key bits set: 122/256
    debug1: bits set: 996/2049
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    debug1: Host '192.168.124.24' is known and matches the RSA host key.
    debug1: Found key in /home/lehibt/.ssh/known_hosts2:3
    debug1: bits set: 1031/2049
    debug1: ssh_rsa_verify: signature correct
    debug1: kex_derive_keys
    debug1: newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: waiting for SSH2_MSG_NEWKEYS
    debug1: newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: done: ssh_kex2.
    debug1: send SSH2_MSG_SERVICE_REQUEST
    debug1: service_accept: ssh-userauth
    debug1: got SSH2_MSG_SERVICE_ACCEPT
    debug1: authentications that can continue: publickey,password
    debug1: next auth method to try is publickey
    debug1: try privkey: /home/lehibt/.ssh/id_rsa
    debug1: try privkey: /home/lehibt/.ssh/id_dsa
    debug1: next auth method to try is password
    venky@192.168.124.24's password:

    thanks
    degz



    Relevant Pages

    • "unknown key type" problem
      ... OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f ... ForwardAgent no ... debug1: Rhosts Authentication disabled, originating port will not be trusted. ...
      (comp.security.ssh)
    • Re: Disconnecting: Bad packet length for OpenSSH_3.5p1 on solaris x86
      ... OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f ... debug1: Rhosts Authentication disabled, ... debug1: newkeys: mode 1 ...
      (comp.security.ssh)
    • Re: rtentry and rtrequest
      ... SSH on the SP whinges about:- ... OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090703f ... debug1: Rhosts Authentication disabled, ... Disconnecting: Bad packet length -730527857. ...
      (freebsd-net)
    • OPENSSH and VPN
      ... OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f ... debug1: Reading configuration data /etc/ssh/ssh_config ...
      (comp.security.ssh)
    • PEM_read_PrivateKey failed
      ... I'm attempting to get DSA public key authentication working between 2 ... debug1: read PEM private key done: type ... OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f ...
      (comp.security.ssh)