1
1
Maybe I'm missing a small detail, but I'm a little confused because of the many keys I see on the server.
I've used the public key authentication set up guide of WinSCP and PuTTY installation for public keys for extra information.
But every time I want to login to the server (Windows Server 2012), it won't accept the PuTTY privaty key.
I've generated the HOST key in the OpenSSH folder on the server as requested (c:\Program Files\OpenSSH
). The SSHD service is running and accepted the host key, all the files are readable and error free working. On the first login via WinSCP I received a host key notification as expected.
The PUBLIC key is stored on the server in a text file authorized_keys.txt
in location: C:\Users\username\.ssh
.
For demo purposes I'm using a password free PRIVATE key on the client and manually loading it in PuTTY and WinSCP, however it won't work. The server says it won't accept the key.
The HOST key is self-generated by using the ssh-keygen.exe –A
command. The PUBLIC and PRIVATE key are generated simultaneously in PuTTYgen.
Has anyone any idea, what I'm doing wrong here?
EDIT
It would become nearly impossible to read so I've filered the errors and found one which is repeated a lot:
Couldn't create pid file "./sshd.pid": Permission denied
other rows where just logs when I logged in.
UPDATE
After a bit more research I've found this page. At the end there's a Windows Public key troubleshooter segment. The writer claims his problems were solved, but mine weren't. I'm restarting the installation but now using only the Administrator account.
@MartinPrikryl both connections won't work indeed – Quispie – 2017-05-16T14:28:33.087