replace RSA in favor of ED25519 and increase strenght
This commit is contained in:
parent
d3bd56e45c
commit
fab9c4abeb
|
@ -913,10 +913,11 @@ useradd -m -g jibri "$MJS_USER"
|
||||||
echo "$MJS_USER:$MJS_USER_PASS" | chpasswd
|
echo "$MJS_USER:$MJS_USER_PASS" | chpasswd
|
||||||
|
|
||||||
#Create ssh key and restrict connections
|
#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
|
#Allow password authentication
|
||||||
sed -i "s|PasswordAuthentication .*|PasswordAuthentication yes|" /etc/ssh/sshd_config
|
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
|
#Setting varibales for add-jibri-node.sh
|
||||||
sed -i "s|MAIN_SRV_DIST=.*|MAIN_SRV_DIST=\"$DIST\"|" add-jibri-node.sh
|
sed -i "s|MAIN_SRV_DIST=.*|MAIN_SRV_DIST=\"$DIST\"|" add-jibri-node.sh
|
||||||
|
|
Loading…
Reference in New Issue