generar una llave privada
This commit is contained in:
parent
37f3f1586e
commit
9ad90339ba
1 changed files with 5 additions and 1 deletions
|
@ -6,5 +6,9 @@ get_stack () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Generar una llave privada ECDSA si no existe
|
||||||
|
generate_private_key () {
|
||||||
|
test -f "$private_key" && return 1
|
||||||
|
|
||||||
|
ssh-keygen -t ecdsa -f "$private_key" -N "" -m PEM
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue