From 5881b038c79f87a18d141679591573fe51a78c9b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 26 Jun 2017 15:19:46 +0100 Subject: [PATCH] Print the last ssh log time --- src/freedombone-utils-ssh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-utils-ssh b/src/freedombone-utils-ssh index 090c8a68..f42d9911 100755 --- a/src/freedombone-utils-ssh +++ b/src/freedombone-utils-ssh @@ -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 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/Port .*/Port $SSH_PORT/g" /etc/ssh/sshd_config