Originally from https://www.chrisjhart.com/Windows-10-ssh-copy-id/ (visited 2021-07-06)
The below is run in Windows PowerShell
Step 1: Create keys (once-off)
ssh-keygen
Step 2: Copy keys (Repeat for every Unix host you login to)
Note: Replace username
and unix-host-or-up-addr
with the actual values for your environment
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh username@unix-host-or-up-addr "cat >> .ssh/authorized_keys"