|
@@ -59,8 +59,8 @@ function configure_ssh {
|
59
|
59
|
if ! grep -q 'HostbasedAuthentication' /etc/ssh/sshd_config; then
|
60
|
60
|
echo 'HostbasedAuthentication no' >> /etc/ssh/sshd_config
|
61
|
61
|
fi
|
62
|
|
- sed 's|#HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
|
63
|
|
- sed 's|HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
|
|
62
|
+ sed -i 's|#HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
|
|
63
|
+ sed -i 's|HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
|
64
|
64
|
sed -i 's|#PrintLastLog.*|PrintLastLog yes|g' /etc/ssh/sshd_config
|
65
|
65
|
sed -i 's|PrintLastLog.*|PrintLastLog yes|g' /etc/ssh/sshd_config
|
66
|
66
|
sed -i 's|#IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
|