|
@@ -40,6 +40,8 @@ function configure_ssh {
|
40
|
40
|
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
|
41
|
41
|
return
|
42
|
42
|
fi
|
|
43
|
+ sed -i 's|#IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
|
|
44
|
+ sed -i 's|IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
|
43
|
45
|
sed -i "s/Port .*/Port $SSH_PORT/g" /etc/ssh/sshd_config
|
44
|
46
|
sed -i "s/#Port ${SSH_PORT}/Port ${SSH_PORT}/g" /etc/ssh/sshd_config
|
45
|
47
|
sed -i 's/PermitRootLogin.*/PermitRootLogin no/g' /etc/ssh/sshd_config
|