SSH copy keys from Windows

I have recently been setting up an old Mac Mini as Webserver and NAS server. One of the things I wanted to do was enable ssh key pair login and wonderd how one used ssh-copy-id on a Windows machine to get the public key from a local machine to the server. It turns out you can’t but the cat command can do it just fine. Here is the template: C:\Users\<user>\.ssh\id_rsa.pub | ssh <user>@<remoteserver> cat >> ....

October 22, 2021 · 1 min · Mark