Click here to Skip to main content
15,887,952 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Debian OS and Windows 2016 with OpenSSH installed and running.
I can do ssh from my Debian to Windows with the password.

$ ssh Administrator@<windows ip="">

This prompts for a password and it works with password.

As I know, ssh-key-gen is used to generate keys and ssh-copy-id is used to copy the public key to the remote host and I tried this from Linjx to Linux which worked.

But how do I achieve passwordless SSH from Linux (Debian) to Windows?

What I have tried:

I tried copying the key to Windows machine under C:\Users\Administrator\.ssh

But no luck. SSH still prompts for a password.
Posted
Updated 9-Apr-19 5:31am

1 solution

Upgrade to Windows 10 and / or server 2019.

Installation of OpenSSH For Windows | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900