Re: ssh connections now freezing, if left idle for a few minutes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20Oct2015 23:50, Maurizio Marini <maumar@xxxxxxxxxxxxxx> wrote:
Until 3/4 days ago, I could leave all of them "hanging" for
DAYS, without typing anything at those prompts, and they'd

Maybe  this parameter can helps?
ServerAliveInterval 60

I use this:

 KeepAlive             yes
 TCPKeepAlive          yes
 ServerAliveCountMax   3
 ServerAliveInterval   17

I tend to avoid 60 and other multiples/factors of a minute, just to skew things a little. Not just in this, also in other intervals.

The upside is that intermediate stateful routers (oh, how we hates them) don't decide your connection is dead so readily.

The downside is that if you have a network outage your shells may all die because the ServerAliveInterval packets fail, and your client aborts.

Re mutt: similar behaviour because mutt supports IMAP's IDLE feature, so after the initial frenzy of activity it enters a mode where it relies on the upstream server to _annouce_ new messages, and is thus also a persistent idle TCP connection.

Might I suggest that in addition to turning on ServerAliveInterval, you also look at using tmux or screen on your remote servers if you're doing significant stuff there - that way you can reconnect to those sessions if your ssh connections abort.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>

The optimist proclaims that we live in the best of all possible worlds; the pessimist fears this is true. - Branch Cabell, The Silver Stallion
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux