[Solved] How to Change the Session Timeout for SSH?
Hi all
I created an Ubuntu Nanode,
and when I connect to it from my computer, using PuTTY,
it seems that If I don't type anything for more than 30 secs, the session is closed.
How can I change this value to something bigger?
Thank you
5 Replies
Thank you stevewi.
I did it, including "systemctl reload sshd" afterwards,
yet no change..
I even rebooted the VPS, and still no change in the time out..
What might I be missing?
BTW,
the problem also expresses when I connect for SFTP.
I am on Windows,
and for SSH I use PuTTY,
and for SFTP I use WinSCP.
Fixing the problem on the Server should solve the problem for both types of sessions: SSH and SFTP,
(which is what I want),
yet it doesn't yet work, on both..
Putty has its own notion of a timeout. You have to change Putty too. See:
https://www.thegeekdiary.com/how-to-configure-timeout-on-ssh-client-putty/
Ditto for Winscp:
https://winscp.net/forum/viewtopic.php?t=10609
-- sw