Unable to get Public Key Authentication to work

Please post here if you have problems in using Wing FTP Server.
Post Reply
jciskey
Posts: 1
Joined: Fri Jul 13, 2012 7:58 pm

Unable to get Public Key Authentication to work

Post by jciskey »

I have Wing FTP Server 4.0.8 installed on a Windows 2008 R2 Server (64-bit). The web interface works properly, as does SFTP login with a password. However, when I try to get public key authentication working, I get the following errors:

Server Log:
Closed session, disconnected from XXX.XXX.XXX.XXX. The reason is: Public key authentication failed.
Command Line:
$ sftp XXX.XXX.XXX.XXX
Connecting to XXX.XXX.XXX.XXX...
Read from socket failed: Connection reset by peer
Couldn't read packet: Connection reset by peer
Obviously the key authentication isn't working properly. I've tried multiple different methods of key generation, including ssh-keygen (dss and rsa) and PuttyGen (as instructed here).

Since I know the software is working, and I know the key generation itself isn't the problem, my conclusion at this point is that I'm not providing the public keyfile in the format that Wing FTP Server is expecting. Can someone provide me with a sample public keyfile so that I know exactly what format to provide the data in, or possibly provide some insight as to where I should look for further information?

Thanks!
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Unable to get Public Key Authentication to work

Post by FTP »

Hi,

Try to remove all the comments in the public key files. Only keep the key as a single line.
Post Reply