Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am experiencing some behaviour which I suspect is due to my wireless link.
I have the habit of leaving open several ssh sessions and switching back and forth to them as and when required.
At the office, which uses cable, this seems to work: connections stay alive as long as I want.
At home, however, the connections "freeze" when not being used for a set amount of time. Wait some more, and the shell exists with status code 255
For the record: ssh connections that are currently transfering data or receiving data (and outputting it on the console), keep alive for as long as that flow is going on + the set time, as mentioned before.
If I press a key inside the ssh session every minute, then the connection keeps alive too.
Our corporate firewall kills idle SSH connections after a period of time. Using putty, you can set it to send null packets periodically to keep your session active (I use 15 seconds here). Have a look at the Connection options in your putty client.
If your client is Linux, not Windows, I think the option to set is ServerAliveInterval. This can be set globally in /etc/ssh/ssh_config, or per user in ~/.ssh/config
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.