|
From: David D. <da...@en...> - 2006-12-18 15:30:31
|
and...@fr... wrote: > Hi all, > I am trying to create a public-private key for authentication via ssh, > usable by putty os pscp > > I read a lot of docs, anyway I was not able to succed in doing this. > > I think the problem is that I am trying to create an SSH-2 key, using > puttygen. I copied my public key in > the /root/.ssh2 directory, I created the "authorization" file containing > the key entry pointing to my .pub file in the same directory Is your server running OpenSSH (sshd) or SSH2 (sshd2)? The location & format of the public key is different. Note this is *not* the same as SSH protocol 1 & 2. Both OpenSSH & SSH2 will talk protocol 1 & 2 quite happily. > Nope, the server always answer: > > "Server refused our key" > > I tried to configure a new user, before having configured webmin to > automatically create rsa key pair: > My Idea was "to spy" what webmin did > > I discoverd webmin creates a .ssh dir (not .ssh2) with the key pair and > without any authorization file Webmin is creating the keys for OpenSSH. > I configured ssh server to use ONLY ssh-2 protocol > > what can I try to do ? Double check what version of SSH your server is running & then you should be able to work out where & how to setup your keys. Also make sure the key & directory on the server aren't world writeable and are owned by the right user. -- David Derrick Entanet International Ltd http://www.enta.net 24/7 Helpdesk: 0870 2243494 |