PuTTY: Server refused our public key

From: N.K. (nadiak_at_parkerglobal.com)
Date: 08/27/03


Date: 27 Aug 2003 10:18:48 -0700

HI,

I'm trying to use putty to connect to a remout server. This is the
first time I'm doing it so I'm not sure if I'm doing it the right way.
1. On the Linux server how do I know what version of ssh is running?
All I know that there is a directory .ssh and there is a file called
known_hosts ( not authorised_keys).

2. On my Windows box, I used puttygen to generate a key. I saved
public and private keys and copied the public key over to known_hosts
file. (I copied whatever was in "public key for pasting into
authorized_keys file"). I made sure it's all one line. BTW public and
private keys are the same. Is that how it's supposed to be? Puttygen
only generates one key. Is the format different?

3. Now, I specified the file where the private key is stored in the
PuTTY session. When I run it, I see following messages:

Sent user name: username
Trying public key authentication
No passfrase required
Server refused our public key
username@ipaddress password:

What am I doing wrong?
My goal is to use Plink to have an automated script that will connect
to this server and copy some files from (scp or pscp) that Linux
server to my Windows machine.

4. My PuTTY session times out very fast.
I went into regedit
hkey_local_machine\system\currentcontrolset\services\tcpip\parameters
and created a REG_DWORD value TcpMaxDataRetransmissions that is
decimal and set to 10. This didn't help. Any ideas?

I appreciate your help.
Thank.
N.K.



Relevant Pages

  • help desperately needed for using PuTTY
    ... I saved the private key in my pc and pasted the ... Server refused our key ... Various forms of this error are printed in the PuTTY window, ... If you see one of these messages, it means that PuTTY has sent a public key ...
    (comp.security.ssh)
  • RE: SSH with OpenSSH and Putty - Please Help!
    ... I deleted all my keys on the server and locally. ... Pagent and then I tried to connect via Putty and I got the same thing. ... the client then sends their public key to the server and the server ... You need to put the authorized_keysin each home directory under ...
    (SSH)
  • Re: sshd putty and DSA
    ... configuring putty to connect to openssh server. ... Copy the public key and paste it to a new file ...
    (SSH)
  • Using PublicKey from a NATted client
    ... I'm trying to use Putty to connect to an OpenSSH server ... via publickey exchange (using a password to login works fine but I'm ... public key as one line into /root/.ssh/authorized_keys on the server. ...
    (comp.security.ssh)
  • SSH question -- strange thing happening.
    ... I used ssh to log in to a server I've set up in my ... house remotely for the first time, using Putty. ... this was the first time I had ssh'd to the server. ... Could it be that my ISP is intercepting SSH ...
    (comp.security.ssh)