diff --git a/src/freedombone-utils-ssh b/src/freedombone-utils-ssh index 8c565d6ebea5da21f77e6e09a738219730d097dd..274ebd0489e30a0c6e0e91858f41810680de57f9 100755 --- a/src/freedombone-utils-ssh +++ b/src/freedombone-utils-ssh @@ -43,9 +43,9 @@ function configure_ssh { if ! grep -q 'RhostsRSAAuthentication' /etc/ssh/sshd_config; then echo 'RhostsRSAAuthentication yes' >> /etc/ssh/sshd_config - else - sed -i 's|#RhostsRSAAuthentication.*|RhostsRSAAuthentication yes|g' /etc/ssh/sshd_config fi + sed -i 's|#RhostsRSAAuthentication.*|RhostsRSAAuthentication yes|g' /etc/ssh/sshd_config + sed -i 's|RhostsRSAAuthentication.*|RhostsRSAAuthentication yes|g' /etc/ssh/sshd_config sed -i 's|#StrictModes.*|StrictModes yes|g' /etc/ssh/sshd_config sed -i 's|StrictModes.*|StrictModes yes|g' /etc/ssh/sshd_config sed -i 's|#KerberosAuthentication.*|KerberosAuthentication no|g' /etc/ssh/sshd_config