Koozali.org: home of the SME Server

SSH Windows client: unable to use user public key feature

Pascal Van Hecke

SSH Windows client: unable to use user public key feature
« on: February 04, 2003, 12:42:41 PM »
Hi,

Sorry for cross-posting, but I noticed this forum probably probably is a better place to ask than the General discussion forum.

I'm using SSH Secure Shell version 3.2.2 from http://www.ssh.com/.
I connected to SME server (version 5.6) as root, then generated a public/private key pair and uploaded my public key to the server.
I checked /root/.ssh2/ and there was indeed a file authorization with

key keyname.pub

and a file called keyname.pub, as predicted in the SSH Client help.

Still, when I set "Allow secure shell access using standard passwords" to "No" in the Remote Access configuration, I am not able anymore to login as root using my SSH Windows client.  The error message the client displays is:

<No more authentication methods available.>>

I searched through the archives but found no similar situation. Has any of you experienced the same trouble?

Regards,

pascal van hecke

Michael Doerner

Re: SSH Windows client: unable to use user public key featur
« Reply #1 on: February 04, 2003, 08:25:41 PM »
Pascal,

have you tried with ssh protocol version 2 only?
I am not sure but I remember you have to use ssh protocol version 1 in combination with public key authentication.

Please try and let us know.
Regards,
Michael Doerner

Robert

Re: SSH Windows client: unable to use user public key featur
« Reply #2 on: February 05, 2003, 01:51:41 AM »
You can use both protocol 1 and 2 with public key authentication. The key types used in these versions are different though, so you need a different key pair for each protocol. SSHWinClient uses protocol 2. SSHWinClient keys are in slightly different format than openssh expects. Here's how to convert the key:
# ssh-keygen -i -f keyname.pub >> ~/.ssh/authorized_keys
# chmod 600 ~/.ssh/authorized_keys