Increase Linux server remote session time:-

Put the below option in the sshd_config file under the/etc/ssh/ directory.

ClientAliveInterval 180

[root@localhost ~]# cd /etc/ssh/
[root@localhost ssh]# pwd
/etc/ssh
[root@localhost ssh]# ll
total 200
-rw——- 1 root root 132839 Mar 31 2010 moduli
-rw-r–r– 1 root root 1827 Mar 31 2010 ssh_config
-rw——- 1 root root 3324 Nov 18 18:30 sshd_config
-rw——- 1 root root 668 Nov 17 00:49 ssh_host_dsa_key
-rw-r–r– 1 root root 590 Nov 17 00:49 ssh_host_dsa_key.pub
-rw——- 1 root root 963 Nov 17 00:49 ssh_host_key
-rw-r–r– 1 root root 627 Nov 17 00:49 ssh_host_key.pub
-rw——- 1 root root 1675 Nov 17 00:49 ssh_host_rsa_key
-rw-r–r– 1 root root 382 Nov 17 00:49 ssh_host_rsa_key.pub
[root@localhost ssh]#

Note:

Where, 180= Client’s ideal session time

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

Data-Should-be-Protected-by-eCommerce-Sites

What Data eCommerce Sites Must Protect and Why

In our technologically advanced world, we completely hinge on e-commerce websites (online stores) for buying…

Corona Virus

How to Secure Your Data When Working From Home during Coronavirus

Originating in China, the COVID-19 virus has shaken the world with the tragic loss of…

7-Digital-Marketing-Strategies-to-Strengthen-your-online-business-BLOG

7 Digital Marketing Strategies to Strengthen your Online Business

The digital age has altered how marketers engage with and sell to audiences. As technology…