From fab9c4abeb856e7645e34104d3096d6214c69c34 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Mon, 20 Jan 2025 22:50:29 -0600 Subject: [PATCH] replace RSA in favor of ED25519 and increase strenght --- quick_jibri_installer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 50625ed..f108e49 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -913,10 +913,11 @@ useradd -m -g jibri "$MJS_USER" echo "$MJS_USER:$MJS_USER_PASS" | chpasswd #Create ssh key and restrict connections -sudo su "$MJS_USER" -c "ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -o -a 100 -q -N ''" +sudo su "$MJS_USER" -c "ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -o -a 200 -q -N ''" #Allow password authentication sed -i "s|PasswordAuthentication .*|PasswordAuthentication yes|" /etc/ssh/sshd_config -systemctl restart sshd +systemctl daemon-reload +systemctl restart ssh.service ssh.socket #Setting varibales for add-jibri-node.sh sed -i "s|MAIN_SRV_DIST=.*|MAIN_SRV_DIST=\"$DIST\"|" add-jibri-node.sh