diff --git a/src/freedombone-utils-ssh b/src/freedombone-utils-ssh index c92f2e66..f41531dd 100755 --- a/src/freedombone-utils-ssh +++ b/src/freedombone-utils-ssh @@ -40,6 +40,8 @@ function configure_ssh { if [[ $(is_completed $FUNCNAME) == "1" ]]; then return fi + sed -i 's|#IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config + sed -i 's|IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config sed -i "s/Port .*/Port $SSH_PORT/g" /etc/ssh/sshd_config sed -i "s/#Port ${SSH_PORT}/Port ${SSH_PORT}/g" /etc/ssh/sshd_config sed -i 's/PermitRootLogin.*/PermitRootLogin no/g' /etc/ssh/sshd_config