Raspbian Pi- SSH Client

I used:

sudo ssh -i /home/pi/.ssh/my_key - "Tom [email protected]"

which in return asks for a password, which is not the output I want.

I want to use the identity file. I created a key in Raspbian using ssh keygen.

ssh-id-copy to Windows 10 SSH Server failed, due to cat/exec not being recognized.

As a workaround, I created a file in the .ssh folder on Windows 10 SSH Server named "authorized_keys". I stored "my_key" public key in authorized_keys file.

I can not get to SSH Server without using user password. Help please? authorized_keys -win 10 ssh issue

  • Are you an administrator on Windows 10? Which SSH server did you install on Windows 10?
    – Daniel B
    Commented Dec 15, 2019 at 20:30
  • Yes, my user is Administrator in WIndows 10, but that doesn't matter? The client I am using is Raspbain . WIndows Version- Build 18362 OpenSHH Server. Raspbain Buster- OpenSSH Client Commented Dec 16, 2019 at 0:35

1 Answer 1


When you install OpenSSH as provided by Microsoft, it ships with a default configuration that contains the following:

Match Group administrators
       AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys

While regular users can use the ~/.ssh/authorized_keys file as you’d expect, administrators cannot.

You have two options:

  • Remove these options from sshd_config in C:\ProgramData\ssh, restart the OpenSSH service
  • Use the administrators_authorized_keys file in C:\ProgramData\ssh

I don’t have any special permissions on my authorized_keys file.

If something isn’t working, remember to check the Windows Event Viewer. OpenSSH logs to Applications and Service LogsOpenSSH. You may have to change the SSH server verbosity to get all the information you need to diagnose problems.

  • Very helpful! Thank you Commented Dec 17, 2019 at 1:00
  • 1
    From Windows Event Viewer- sshd: Connection reset by authenticating user Tom Smith port 32599 [preauth]. What would cause the reset? Permission issue? Commented Dec 25, 2019 at 4:43
  • This log message alone is not enough to judge the situation.
    – Daniel B
    Commented Dec 25, 2019 at 20:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .