Wednesday, July 4, 2018

ssh - Public key authentication on Windows OpenSSH server

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)


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...