Last active
July 29, 2021 15:09
-
-
Save costa86/322dbbb1150ea585932517c080173e5b to your computer and use it in GitHub Desktop.
Create SSH keys PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$number = 100 | |
$path = "<where the key will be stored>" | |
$keyname = Read-Host "Please enter your keyname" | |
$comment = $keyname | |
ssh-keygen -a $number -t ed25519 -f $path$keyname -C $comment | |
ssh-add $path$keyname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment