Unable to get Public Key Authentication to work

Please post here if you have problems in using Wing FTP Server.

Unable to get Public Key Authentication to work

Postby jciskey » Fri Jul 13, 2012 8:23 pm

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:
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?

posts 1
joined Fri Jul 13, 2012 7:58 pm

Re: Unable to get Public Key Authentication to work

Postby FTP » Sat Jul 14, 2012 2:59 am


Try to remove all the comments in the public key files. Only keep the key as a single line.
Site Admin
posts 1568
joined Tue Sep 29, 2009 6:09 am

Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests