Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-23-2007, 04:22 PM
|
#1
|
Member
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342
Rep:
|
Keep-alive for SSH on wireless connection?
Hi there
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.
Anybody know how to remedy this?
Thanks
|
|
|
04-23-2007, 04:39 PM
|
#2
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
Probably a firewall that kills the non active connections to prevent DoS.
The ssh timeout has to be less than the firewall timeout.
|
|
|
04-23-2007, 04:52 PM
|
#3
|
Member
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342
Original Poster
Rep:
|
Please be aware that this does not happen on the connections made on the cable connection.
That said, what firewall are we talking about?
|
|
|
04-23-2007, 07:03 PM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
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
|
|
|
04-24-2007, 05:24 PM
|
#5
|
Member
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342
Original Poster
Rep:
|
Thank you all for your input
|
|
|
All times are GMT -5. The time now is 07:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|