Re: 3.7.1p2 client ignores rsa2 public key authentication on HPUX 10.20

From: Darren Tucker (dtucker_at_zip.com.au)
Date: 02/27/04

  • Next message: Ball, Duncan: "RE: Logging into SSH"
    Date: Fri, 27 Feb 2004 12:00:13 +1100
    To: "uxadm (pk)" <uxadm@bbl.ms.philips.com>
    
    

    uxadm (pk) wrote:
    > Darren Tucker wrote:
    >
    >>> Thanks for your answer but unfortunately it did not solve the problem.
    >>> I still can only get publickey authentication using an rsa1 key pair
    >>> whereas rsa2 or dsa key pairs are simply ignored.
    >>> It seems 3.7 is not recognizing rsa2 features properly. I have heard
    >>> from some HP guys that they turned back to 3.6
    >>>
    >>> > debug1: identity file /home/peterk/.ssh/id_rsa type -1
    >>> ^^^^^^^
    >>> Where can I find information what the type meanings are?
    >>
    >> Read the source :-)
    >>
    >> In this case, type = -1 means that the file was not recognised as a
    >> public key. What were the debug lines preceding that one? They'll be
    >> from key_load_public and friends.
    >
    > In fact I did look into the source but I could not find a detailed
    > description of the type meanings.

    They're defined in key.h:

    enum types {
             KEY_RSA1,
             KEY_RSA,
             KEY_DSA,
             KEY_UNSPEC
    };

    debug1: identity file /home/peterk/.ssh/id_rsa type -1
    [...]
    debug1: identity file /home/peterk/.ssh/id_dsa type -1

    Are those valid public keys? Try reading them with the openssl command, eg:
    $ openssl rsa -in $HOME/.ssh/id_rsa -noout
    $ openssl dsa -in $HOME/.ssh/id_dsa -noout

    Note: if you omit the -noout, *DO NOT* post the output.

    > When I use the same key pair from Linux I do also get a type -1 output
    > but the key authenticates without problems, so the meaning must be
    > somewhat different. See below for a more detailed debug output
    [...]

    > And here's what it says on Linux
    > debug1: Connection established.
    > debug1: identity file /home/peterk/.ssh/identity type -1
    > debug1: identity file /home/peterk/.ssh/id_rsa type -1
    > debug1: identity file /home/peterk/.ssh/id_dsa type -1

    And the authentication succeeds? That's odd. Here's what I get on
    Linux (RH9, OpenSSH 3.8p1):
    debug1: identity file /home/dtucker/.ssh/identity type 0
    debug1: identity file /home/dtucker/.ssh/id_rsa type 1
    debug1: identity file /home/dtucker/.ssh/id_dsa type 2

    -- 
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
         Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.
    

  • Next message: Ball, Duncan: "RE: Logging into SSH"

    Relevant Pages

    • scping from vms to unix w/ public key
      ... We set up our public key stuff on the unix side as directed in the ... we can use public key authentication going from another unix ... debug: entering event loop ...
      (comp.security.ssh)
    • password less login problem
      ... The client is a sun box ... then copy the public key to the gentoo system. ... debug: client supports 3 auth methods: ... Sending response packet. ...
      (comp.security.ssh)
    • Connect to a linux box from Windows using RSA authentication
      ... transferred the public key to ... On the client I've got IdKey key in the identification file. ... debug: server offers auth methods 'publickey,password,keyboard-interactive'. ...
      (SSH)
    • Re: PuTTY and SSH2 on OpenVMS - Not
      ... > signature, it's refused. ... I've got the server logs now, but I don't see any "reason" for the ... debug: Ssh2Transport/TRCOMMON.C:643: Remote version: ... Public key operation failed for tbransco. ...
      (comp.security.ssh)
    • Re: PuTTY and SSH2 on OpenVMS - Not
      ... > signature, it's refused. ... I've got the server logs now, but I don't see any "reason" for the ... debug: Ssh2Transport/TRCOMMON.C:643: Remote version: ... Public key operation failed for tbransco. ...
      (comp.os.vms)