Print the last ssh log time
This commit is contained in:
parent
2a66fae204
commit
5881b038c7
|
@ -46,6 +46,8 @@ function configure_ssh {
|
||||||
sed 's|#HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
|
sed 's|#HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
|
||||||
sed 's|HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
|
sed 's|HostbasedAuthentication.*|HostbasedAuthentication no|g' /etc/ssh/sshd_config
|
||||||
fi
|
fi
|
||||||
|
sed -i 's|#PrintLastLog.*|PrintLastLog yes|g' /etc/ssh/sshd_config
|
||||||
|
sed -i 's|PrintLastLog.*|PrintLastLog yes|g' /etc/ssh/sshd_config
|
||||||
sed -i 's|#IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
|
sed -i 's|#IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
|
||||||
sed -i 's|IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
|
sed -i 's|IgnoreRhosts.*|IgnoreRhosts yes|g' /etc/ssh/sshd_config
|
||||||
sed -i "s/Port .*/Port $SSH_PORT/g" /etc/ssh/sshd_config
|
sed -i "s/Port .*/Port $SSH_PORT/g" /etc/ssh/sshd_config
|
||||||
|
|
Loading…
Reference in New Issue