Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikifar2012/ps-copyid
Simple Powershell Module to emulate ssh-copy-id
https://github.com/ikifar2012/ps-copyid
powershell-module ssh-copy-id
Last synced: 5 days ago
JSON representation
Simple Powershell Module to emulate ssh-copy-id
- Host: GitHub
- URL: https://github.com/ikifar2012/ps-copyid
- Owner: ikifar2012
- Created: 2020-08-13T23:14:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T04:14:18.000Z (4 months ago)
- Last Synced: 2024-10-24T16:51:42.705Z (4 months ago)
- Topics: powershell-module, ssh-copy-id
- Language: PowerShell
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PS-CopyID
Simple Powershell Module to emulate `ssh-copy-id` based off of a blog post by [Christopher Heart](https://www.chrisjhart.com/Windows-10-ssh-copy-id/)
# Installation
Just type the following command to install it from the [Powershell Gallery](https://www.powershellgallery.com/packages/ps-copyid/):
```ps1
Install-Module -Name ps-copyid
```
Then Add it to your `$Profile` using the following command:
```ps1
Write-Output "Import-Module PS-CopyID" | Out-File -Append $Profile
```# Usage
Simply type:
```ps1
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:
```ps1
Copy-ID username@hostname \path\to\your\key
```# Support Me
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/B0B84ZX96)