Unable to open //.ssh2/identification - SSH

This is a discussion on Unable to open //.ssh2/identification - SSH ; HostA=SSH Secure Shell 2.4.0 (non-commercial version) on sparc-sun- solaris2.8 HostB=OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004 on Linux 2.4.21-40.ELsmp NO option to change either version. Problem publickey authentication from HostB >> HostA does not work. Steps so far: 1) generate clean ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Unable to open //.ssh2/identification

  1. Unable to open //.ssh2/identification

    HostA=SSH Secure Shell 2.4.0 (non-commercial version) on sparc-sun-
    solaris2.8
    HostB=OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004 on Linux
    2.4.21-40.ELsmp
    NO option to change either version.

    Problem publickey authentication from HostB >> HostA does not work.

    Steps so far:
    1) generate clean key on HOSTA: ssh-keygen2 -P -b 1024 -t dsa /.ssh2/
    hosta
    2) generate clean key on HOSTB: ssh-keygen -t dsa -b 1024 -N "" -f "/
    root/.ssh/$(hostname)"
    3) copy HOSTA pub key to tmp file on HOSTB
    4) CONVERT (on HOSTB) the tmp file on pub key from Secure Shell format
    to openssh format using ssh-keygen -i (interactive after this, it
    request the input file and sends converted key to stdout, which then
    goes in /root/.ssh/authorized_keys2)
    5) update /root/.ssh/identification file on HOSTB: echo "IdKey
    " > identification

    everything seems OK, until this
    ------------------------------------------------------
    debug: Unable to open //.ssh2/identification
    debug: Ssh2AuthClient/sshauthc.c:309/ssh_authc_completion_proc: Method
    'publickey' disabled.

    I think part of the issue is the PATH listed is that error.
    Can anyone help me figure where this is coming from????

    bash-2.03# ssh -vvv -pxxxx HOSTA
    debug: connecting to HOSTA...
    debug: entering event loop
    debug: ssh_client_wrap: creating transport protocol
    debug: SshAuthMethodClient/sshauthmethodc.c:117/
    ssh_client_authentication_initialize: Added "publickey" to usable
    methods.
    debug: SshAuthMethodClient/sshauthmethodc.c:117/
    ssh_client_authentication_initialize: Added "password" to usable
    methods.
    debug: Ssh2Client/sshclient.c:1142/ssh_client_wrap: creating userauth
    protocol
    debug: Ssh2Common/sshcommon.c:502/ssh_common_wrap: local ip =
    xx.xx.xx.xx, local port = xxxx
    debug: Ssh2Common/sshcommon.c:504/ssh_common_wrap: remote ip =
    xx.xx.xx.xx, remote port = xxxx
    debug: SshConnection/sshconn.c:1866/ssh_conn_wrap: Wrapping...
    debug: Ssh2Transport/trcommon.c:599/ssh_tr_input_version: Remote
    version: SSH-2.0-OpenSSH_3.9p1
    debug: Ssh2Transport/trcommon.c:789/ssh_tr_input_version: Remote
    version has rekey incompatibility bug.
    debug: Ssh2Transport/trcommon.c:1120/ssh_tr_negotiate: c_to_s: cipher
    3des-cbc, mac hmac-sha1, compression none
    debug: Ssh2Transport/trcommon.c:1123/ssh_tr_negotiate: s_to_c: cipher
    3des-cbc, mac hmac-sha1, compression none
    debug: Ssh2Client/sshclient.c:406/keycheck_key_match: Host key found
    from database.
    debug: Ssh2Common/sshcommon.c:306/ssh_common_special: Received
    SSH_CROSS_STARTUP packet from connection protocol.
    debug: Ssh2Common/sshcommon.c:356/ssh_common_special: Received
    SSH_CROSS_ALGORITHMS packet from connection protocol.
    debug: Unable to open //.ssh2/identification
    debug: Ssh2AuthClient/sshauthc.c:309/ssh_authc_completion_proc: Method
    'publickey' disabled.
    debug: Ssh2AuthPasswdClient/authc-passwd.c:92/ssh_client_auth_passwd:
    Starting password query...
    root's password: FATAL: Received signal 2.


  2. Re: Unable to open //.ssh2/identification

    On 2007-10-11, Phil wrote:
    > HostA=SSH Secure Shell 2.4.0 (non-commercial version) on sparc-sun-
    > solaris2.8
    > HostB=OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004 on Linux
    > 2.4.21-40.ELsmp
    > NO option to change either version.
    >
    > Problem publickey authentication from HostB >> HostA does not work.
    >
    > Steps so far:
    > 1) generate clean key on HOSTA: ssh-keygen2 -P -b 1024 -t dsa /.ssh2/
    > hosta
    > 2) generate clean key on HOSTB: ssh-keygen -t dsa -b 1024 -N "" -f "/
    > root/.ssh/$(hostname)"
    > 3) copy HOSTA pub key to tmp file on HOSTB
    > 4) CONVERT (on HOSTB) the tmp file on pub key from Secure Shell format
    > to openssh format using ssh-keygen -i (interactive after this, it
    > request the input file and sends converted key to stdout, which then
    > goes in /root/.ssh/authorized_keys2)
    > 5) update /root/.ssh/identification file on HOSTB: echo "IdKey
    >" > identification
    >
    > everything seems OK, until this
    > ------------------------------------------------------
    > debug: Unable to open //.ssh2/identification
    > debug: Ssh2AuthClient/sshauthc.c:309/ssh_authc_completion_proc: Method
    > 'publickey' disabled.


    Your problem command looks as if it may have been run on HOSTB and not HOSTA
    as described.

    It looks like an attempt to open the file ".ssh2/identification" under
    a home directory of "/" which are the Solaris,SSH-2.4 attributes instead
    of the Linux/OpenSSH ones.

    Also your step5 seems wrong - no "identification" file is wanted for OpenSSH
    but you will want on Solaris the one that's missing in your error message.

    --
    Elvis Notargiacomo master AT barefaced DOT cheek
    http://www.notatla.org.uk/goen/

  3. Re: Unable to open //.ssh2/identification

    On Oct 10, 11:25 pm, all mail refused
    wrote:

    > Also your step5 seems wrong - no "identification" file is wanted for OpenSSH
    > but you will want on Solaris the one that's missing in your error message.
    >
    > --
    > Elvis Notargiacomo master AT barefaced DOT cheekhttp://www.notatla.org.uk/goen/


    Thank you, Elvis .. that was what I was missing - the identification
    file on the Solaris host in /.ssh2, pointing to the local private key
    file!

    phil


+ Reply to Thread