Migrate to ed25519 key, change id_rsa to identity file name

This commit is contained in:
2020-05-17 10:38:33 +02:00
parent bf20dd04c3
commit bfda197c4d
2 changed files with 4 additions and 4 deletions

View File

@@ -93,10 +93,10 @@ function createDetectorConfig(){
function generateSSHKey(){
# generates ssh key with $1 path and $2 description
local keyfile=$1/id_rsa
local keyfile=$1/identity
local description=$2
echo "Creating SSH deployment key.."
ssh-keygen -f $keyfile -b 4096 -C "$description" -N ""
ssh-keygen -f $keyfile -t ed25519 -C "$description" -N ""
echo
echo "Public key is:"
echo "-----------------------------------------------------"
@@ -196,7 +196,7 @@ fi
if [[ "$read_ssh" =~ ^[Uu]$ ]]
then
# load key
reuseSSHKey $root/config/auth/ssh/id_rsa
reuseSSHKey $root/config/auth/ssh/identity
fi