Last active
November 13, 2021 17:08
-
-
Save costa86/7bb776bfcd87769d423c785e1f1fca03 to your computer and use it in GitHub Desktop.
Create SSH key - bash
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
eval "$(ssh-agent -s)" | |
number=100 | |
path=$HOME/.ssh/ | |
read -p 'Keyname: ' 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