All configuration seems fine but OpenSSH replies with errors: 2048 bit keys was generated, public one put into C:\cygwin64\home\user\.ssh\authorized_keys. When trying to connect using PuTTY to localhost it wont let in.

Server refused our key

Moreover when using 100% valid credentials for user - OpenSSH won't let in either.

Access denied

OpenSSH was set up according to this tutorial.

Log at C:\cygwin64\var\log\sshd.log is empty. How to make it work?

PS. When trying to log in from Cygwin terminal it says:

Permission denied, please try again.


When installed bitvise SSH Server. Same story. Logon to Windows account failed Such a strange behavior.


When trying in cmd runas:

Attempting to start explorer.exe as user "PC\user2" ...
RUNAS ERROR: Unable to run - explorer.exe
1385: Logon failure: the user has not been granted the requested logon type at this computer.
  • Are you using the same user in both computers? Without other options, Windows username must be remote ssh key username (user@remotehost). – edumgui May 5 '16 at 16:01
  • I am running it all inside one VM while logged in as a different user. – J.Olufsen May 5 '16 at 16:06

We could use process monitor and filter the "Access denied" error to have a troubleshoot.

Here is a link for reference:


Here is the download link:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.