We help IT Professionals succeed at work.
Get Started

Public Key Authentication for Win32-OpenSSH on WIndow Server 2012 R2

Last Modified: 2016-04-03
I have never setup up public key authentication on Linux, so this could be why I have a hard time figuring out how to make it work on SSH in windows.

I have installed Win32-OpenSSH and can SSH into windows using username and password. The part I am unclear on is how to allow root user from a Linux machine to SSH into windows without the need for a password (public key authentication).

I followed this guide: https://winscp.net/eng/docs/guide_public_key . Which was linked to from the guide for installing Win32-OpenSSH: https://winscp.net/eng/docs/guide_windows_openssh_server

The only thing I've managed to accomplish is for the Linux box to request the passphrase for /root/.ssh/id_dsa and give warnings about the Windows dsa host key every time I SSH into the windows machine. I am also prompted for the windows user password, before logging in.

Thanks for the assistance.
Watch Question
Distinguished Expert 2020
This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE