SSH2 (ssh.com) Server Key Authentication with OpenSSH Client?

From: Aria (exhuman_at_gmail.com)
Date: 02/14/05


Date: 14 Feb 2005 14:18:44 -0800

Hi,

I have SSH2 (ssh.com) server (4.2.0.21 SSH Secure Shell Windows Server)
running on an XP Windwos and trying to get the public key
authentication working from a host who runs OpenSSH client (OpenSSH
3.8.1p1).

These the procedures I have followed from various sources and books but
none has worked:

Creating a pair of public/private key on a host with OpenSSH client:

`ssh-keygen -t dsa'

Then converting the OpenSSH key to SSH2 format:

`ssh-keygen -e -f ~/.ssh/id_dsa.pub > ~/.ssh/id_dsa_openssh.pub'

Now, I even tried creating a key without a passphrase, converting it to
SSH2 format, then setting the passphrase, it did NOT work.

Transfer the public key to the Windows machine and place it in:

`C:\Documents and Settings\user\Application Data\SSH\UserKeys'

Then add this to `C:\Documents and Settings\user\Application
Data\SSH\authorization' file:

`Key UserKeys/id_dsa_openssh.pub'

I even tried transferring a passwordless private and public keys
generated by OpenSSH's `ssh-keygen' and attempting to set the
passphrase via `ssh-keygen2' on Windows but did not work.

The SSH2 server reports this:

`2948:Ssh2AuthPubKeyServer: Received public key (type ssh-dss) not
authorized by authorization file.'

On the OpenSSH client side, it reports:

`debug1: Offering public key: /home/user/.ssh/id_dsa'

And then keeps going through keys until it doesn't authenticate any of
them. The permissions have been set to 600 and 644 on separate
occasions but neither has worked.

Once again, I'm trying to authenticate my keys from OpenSSH client on
Unix environment to SSH2 (ssh.com) server.

I have successfully managed to authenticate the opposite though: SSH2
(ssh.com) client to OpenSSH server.



Relevant Pages

  • Re: SSH client -> openSSH server
    ... To use public-key authentication between an OpenSSH client and an SSH Secure ... Shell server, you must convert your public key to the secsh public key file ...
    (comp.security.ssh)
  • RE: OpenSSH connection Problem
    ... From OpenSSH, to SSH2 ... Note that following the public key from OSSH will be on CSSH. ... If you are not an intended recipient, ...
    (SSH)
  • Re: Unable to read DSA public key
    ... port 1048 ssh2 ... Feb 18 11:40:46 mahaweli sshd: Failed publickey for jagath from ... fine with the same machine using the same public key. ...
    (comp.security.ssh)
  • Re: HELP! Ive been had! Someone hacked into my Linux box. What now?
    ... I thought my passwords were pretty secure... ... People need your private key to be able to authenticate ... the people have to know your public key to be able to recover ...
    (comp.os.linux.security)
  • Re: Setting up a secure shell server
    ... I have 3+ years of linux ... If you mean passwordless as in no known password for the ... trusted third party must therefore insert the users public key in the ... appropriate place before the user can actually authenticate and thus log ...
    (Focus-Linux)