How to Keep Alive SSH Sessions

Many NAT firewalls time out idle sessions after a certain period of time to keep their trunks clean. Sometimes the interval between session drops is 24 hours, but on many commodity firewalls, connections are killed after as little as 300 seconds. To avoid having your SSH sessions become unresponsive after e.g. 5 minutes, do the following:
(more…)

Read More

login banner Linux

To create a banner so that whenever a user logs into a system will see some default text, you can couple of options

1. put the default text into /etc/motd

2. type echo “<the text you want to display>” into /etc/profile

3. type echo “<the text you want to display>” into user home .profile file. (more…)

Read More