Is there a way to display active SSH login details in the MOTD display? Like, I wanted to display the IP Address from where the connection got originated and how much time the session is active. Is this possible?
# tty --silent && finger Login Name Tty Idle Login Time Office Office Phone Host root root pts/0 Jun 22 00:33 (192.168.2.2) root root pts/1 Jun 22 00:38 (192.168.2.2)
Is there a way to remove Office & Office Phone from the above output so that it looks little more better? In addition, it just says at what time the user is logged in. Is there a way also to show how much time the user is logged in?