0

I have two Windows machines running on Ubuntu virtual box. Both machines have OpenSSH installed. I can connect from one to another using ssh and passwords, but I can not figure out how to use keys.

I generated keys on the client machine using ssh-keygen -t rsa, saved the public key on the remote machine as authorized_keys in the folder C:\Users\username\.ssh and changed the settings to PasswordAuthentication no in Program Files\OpenSSH\etc\sshd_config and restarted SSH server. When I try to connect I get an error

Permission denied (public key,keyboard-interactive)

  • What's your OpenSSH Windows installation based on? Cygwin on MinGW? Why do you think that the ~ maps to C:\Users\username? – Martin Prikryl Oct 5 '15 at 14:52
  • I'm not quite sure how to check if it is based on Cygwin, but bin directory contains cygwin1.dll – Vitaly Ivanov Oct 5 '15 at 15:11
0

Under Cygwin the root (/) maps by default to C:\cygwin (or cygwin64 on 64-bit).

So the /home/username/.ssh folder should be under C:\cygwin\home\username\.ssh

| improve this answer | |

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.