Getting the following error when trying to SSH into your windows machine?
Permission denied (publickey,keyboard-interactive).
This is probably because PasswordAuthentication
is set to no
. It also maybe that you haven't added your public key to the server. To add your public key follow these steps
Log onto your local machine and generate a ssh key pair. For this gist I will be using windows_server
as the file name
$ cd ~/.ssh
$ ssh-keygen -f windows_server
Copy the contents of windows_server.pub
to C:\ProgramData\ssh\administrators_authorized_keys
file in your windows server.
Open Control Panel\All Control Panel Items\Administrative Tools
> Services
. Look for OpenSSH SSH Server
on the list of services. Click on restart
on the right hand side.
That's it friends. Hopefully this had solved your problem.
Thanks dear bro solved