Skip to content

Simple Powershell Module to emulate ssh-copy-id

Notifications You must be signed in to change notification settings

ikifar2012/PS-CopyID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PS-CopyID

Simple Powershell Module to emulate ssh-copy-id based off of a blog post by Christopher Heart

Installation

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

Usage

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

Support Me

ko-fi