Changing ssh server config
This commit is contained in:
parent
bbae177910
commit
9ffb2b235f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue