add sshkeygen function

master
Kebler Network System Administrator 2023-01-01 10:41:37 -08:00
parent 64df1b08ec
commit 24ed7b60dc
1 changed files with 2 additions and 2 deletions

View File

@ -49,9 +49,9 @@ sshkeygen () {
shift $((OPTIND - 1))
[[ ! $1 ]] && echo must supply a private key name && return 1
[[ $2 ]] && pass="-P $2" || echo warning, you creating an unencrypted key without a passphrase
[[ $2 ]] && pass="-P $2" || echo warning, you are creating an unencrypted key without a passphrase
ssh-keygen -f $1 -t ecdsa -b 521 -C $1 $pass $pem
ssh-keygen -f $1 $encode -b 521 -C $1 $pass $pem
}