help? ssh connect w/ DSA pubkey auth keeps asking for passphrase; w/ RSA pubkey auth, all is OK

From: OpenMacNews (OpenMacNews_at_speakeasy.net)
Date: 09/04/05

  • Next message: Darren Tucker: "Re: Port Forwarding from different local addresses"
    Date: Sun, 04 Sep 2005 12:51:31 -0700
    To: secureshell@securityfocus.com
    
    
    

    hi all,

    i've:

    % ssh -V
            OpenSSH_4.1p1, OpenSSL 0.9.7g 11 Apr 2005
    % uname -a
            Darwin devbox 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005;
    root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc

    i've created two ssh passphrase-less keypairs for my machine, 'devbox', one RSA
    and one DSA, using:

    ssh-keygen -b 2048 -t rsa -f /usr/local/etc/ssh/rsakeys/ssh.devbox.rsa -N "" -C
    "root@devbox"
    ssh-keygen -b 2048 -t dsa -f /usr/local/etc/ssh/dsakeys/ssh.devbox.dsa -N "" -C
    "root@devbox"

    after propagating both pubkeys to another box ('myserver'), if i 'ssh' to
    'myserver' using the RSA key as an identity file:

            IdentityFile /usr/local/etc/ssh/rsakeys/ssh.devbox.rsa.pub

    all is OK. i can immediately connect via pubkey auth with no error ...

    however, if i try the exact same thing but, with the DSA ident file:

            IdentityFile /usr/local/etc/ssh/dsakeys/ssh.devbox.dsa.pub

    on connection attempt, i get an error:

            PEM_read_PrivateKey failed

    and a request for a passphrase:

            ...
            debug1: Host 'devbox.mydomain.com' is known and matches the DSA host key.
            debug1: Found key in /usr/local/etc/ssh/authorized_keys2:1
            debug2: bits set: 500/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: /usr/local/etc/ssh/dsakeys/ssh.devbox.dsa.pub (0x401d10)
            debug1: Authentications that can continue: publickey
            debug1: Next authentication method: publickey
            debug1: Offering public key: /usr/local/etc/ssh/dsakeys/ssh.devbox.dsa.pub
            debug2: we sent a publickey packet, wait for reply
            debug1: Server accepts key: pkalg ssh-dss blen 818
            debug2: input_userauth_pk_ok: fp
    74:3f:c7:96:12:9e:6d:88:8e:bc:21:56:d3:40:9f:e3
            debug1: PEM_read_PrivateKey failed
            debug1: read PEM private key done: type <unknown>
            Enter passphrase for key '/usr/local/etc/ssh/dsakeys/ssh.devbox.dsa.pub':

    i've googled, and all i'm finding (so far) is advice to create the DSA keys
    without passphrase ...

    which, as above, i have already, i believe, done correctly, and checked &
    re-checked ...

    suggestions?

    thx!

    richard

    
    



  • Next message: Darren Tucker: "Re: Port Forwarding from different local addresses"

    Relevant Pages

    • Re: RSA or DSA?
      ... The SSH 1 protocol only supports RSA keys; ... supported by PuTTY are RSA and DSA. ... The PuTTY developers strongly recommend you use RSA. ...
      (comp.security.ssh)
    • Re: ssh no password problem
      ... Subject: ssh no password problem ... 135 ssh-keygen -t dsa ... when I do ssh localhost, ... The passphrase may be empty to indicate no passphrase ...
      (Ubuntu)
    • Re: ssh-keygen between SuSE and FreeBSD
      ... I'm not quite sure right now why you're using rsa keys. ... dsa keys. ... ssh version 1, while dsa keys are for ssh version 2. ...
      (freebsd-stable)
    • Re: ssh-keygen between SuSE and FreeBSD
      ... dsa keys. ... ssh version 1, while dsa keys are for ssh version 2. ... I think I chose rsa because the FreeBSD manual indicated I could use either and ...
      (freebsd-stable)
    • Re: SSH question
      ... > I'm trying to setup password-less SSH login using public/private keypair but am failing. ... I always use DSA encryption but if RSA works the same way, ... shouldn't be prompted for a password (unless you entered a passphrase ...
      (Ubuntu)

  • Quantcast