RE: Private Key file format?

From: Wilson, Richard E (richard.wilson@eds.com)
Date: 01/29/03

  • Next message: Sean Kamath: "Re: Private Key file format?"
    From: "Wilson, Richard E" <richard.wilson@eds.com>
    To: "'Beau Sapach'" <beau.sapach@ualberta.ca>, secureshell@securityfocus.com
    Date: Wed, 29 Jan 2003 10:07:45 -0600
    
    

    Beau,

    The id_rsa.pub (and/or id_dsa.pub if you generate one with ssh-keygen -t
    dsa) go into the remote systems ~/.ssh/authorized_keys2 file. The file
    ~/.ssh/suthorized_keys is used by SSH protocol v1 and would hold the
    contents of ~/.ssh/identity.pub (generated with a ssh-keygen -t rsa1).

    Richard Wilson

    -----Original Message-----
    From: Beau Sapach [mailto:beau.sapach@ualberta.ca]
    Sent: Tuesday, January 28, 2003 1:24 PM
    To: secureshell@securityfocus.com
    Subject: Private Key file format?

    Hello everyone,

    I've got openssh installed via packages from sunfreeware on a sparc/solaris8

    system. I've run ssh-keygen -t rsa to generate my public/private key pair
    and
    then copied ~/.ssh/id_rsa.pub into ~/.ssh/authorized_keys. To my
    understanding this should allow me to ssh into localhost without supplying a

    password. I've checked ssh_config and sshd_config to ensure that both have
    PubkeyAuthentication set to yes, and that the proper identity files are set.

    Still ssh localhost will prompt for a password. When I run ssh -v -v -v
    localhost I get the following:

    debug1: identity file /home/beau/.ssh/identity type 0
    debug3: Not a RSA1 key file /home/beau/.ssh/id_rsa.
    debug3: key_read: no space
    debug1: identity file /home/beau/.ssh/id_rsa type 1
    debug3: Not a RSA1 key file /home/beau/.ssh/id_dsa.
    debug2: key_type_from_name: unknown key type '-----BEGIN'
    debug3: key_read: no key found
    debug3: key_read: no space
    debug3: key_read: no space
    debug3: key_read: no space
    debug3: key_read: no space
    debug3: key_read: no space
    debug3: key_read: no space
    debug3: key_read: no space
    debug3: key_read: no space
    debug3: key_read: no space
    debug3: key_read: no space
    debug2: key_type_from_name: unknown key type '-----END'
    debug3: key_read: no key found
    debug1: identity file /home/beau/.ssh/id_dsa type 2

    It looks to me like ssh fails to read the private key file. Has anyone else

    seen this? Does anyone know what's going on here?

    Beau



    Relevant Pages