Replacing ssh-copy-id on Windows

Save a few keystrokes on occasion

Posted by David Van Loon on January 28, 2019

The ssh-copy-id command is useful for configuring a server to allow authentication with a given set of SSH keys. Read more on the command here.

Windows comes with a built-in SSH client. It’s an optional feature, however, so it must be enabled before use. One missing component is ssh-copy-id. Many options exist that replicate its behavior, but I wanted something very simple that I could stash in my PowerShell profile.

Here’s what I created: