Simple Powershell Module to emulate ssh-copy-id
based off of a blog post by Christopher Heart
Just type the following command to install it from the Powershell Gallery:
Install-Module -Name ps-copyid
Then Add it to your $Profile
using the following command:
Write-Output "Import-Module PS-CopyID" | Out-File -Append $Profile
Simply type:
Copy-ID username@hostname
Using the above example PS-CopyID will automatically copy the id_rsa.pub
file in your .ssh
folder of your PC to your server
If you would like to specify a directory follow this example:
Copy-ID username@hostname \path\to\your\key