The Windows version of OpenSSH client doesn't include a ssh-copy-id command. I don't know why. If it does one day, then this can be ignored.
NOTE If you have Windows Subsystem for Linux (WSL) installed, you can use the linux version of ssh-copy-id instead. Go to the description at the end of this document.
- Download the file
ssh-copy-id.cmd
to your Windows PC, or copy and paste its contents. - Run the script passing your linux ssh information (for example
ssh-copy-id.cmd pi@raspberrypi.local
). This should work with any Linux platform. Alternatively, if you have experience, you can use the powershell version.ssh-copy-id.ps1
. Run the script aspowershell .\ssh-copy-id.ps1 pi@raspberrypi.local
. - Run the command for each linux account you connect with. You will be prompted for your Linux host password. If you have more than 1 account on any machine, you must do this for each account.
The file name and location of the script is not important but the filename extension must be .cmd