Changing ssh server config

This commit is contained in:
Bob Mottram 2017-06-29 13:42:49 +01:00
parent bbae177910
commit 9ffb2b235f
1 changed files with 2 additions and 2 deletions

View File

@ -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