add sshkeygen function
parent
64df1b08ec
commit
24ed7b60dc
|
@ -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
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue