Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 25/26 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Thread Tools Search this Thread Display Modes
Old 16th June 2012, 01:43 AM
karthick87 Offline
Registered User
Join Date: Nov 2011
Posts: 24
How to close ssh connection when it is idle for a min ?

I am using Fedora v16. I just want to set timeout option to my ssh connection. If the connection is idle for a minute, i would like to disable the connection. How can i do this ? Could someone give me a possible solution pls ? Thanks in advance..

Last edited by karthick87; 16th June 2012 at 02:12 AM.
Reply With Quote
Old 16th June 2012, 03:19 AM
nonamedotc Offline
Join Date: Mar 2011
Location: /
Posts: 4,985
Re: How to ssh connection when it is idle fo r a min ?

Look at the option ClientAliveInterval in the sshd_config file.

[ ... ]

Compression delayed
ClientAliveInterval 0
ClientAliveCountMax 3

[ ... ]
Reply With Quote
Old 16th June 2012, 04:20 AM
Doug G Offline
Registered User
Join Date: Jul 2005
Posts: 803
Re: How to ssh connection when it is idle fo r a min ?

If you're using the ssh connection yourself, you may not want to set a short timeout, or any timeout for that matter. Last time I had a timeout set in sshd I discovered it only looked at client in data to keep the connection alive. A long-running process on the server, even one that outputted to the terminal, would time out, drop the connection and kill the server process.

This was quite a few versions back, maybe f10 or f11'sh, and maybe that problem is gone now. I haven't set a timeout in sshd_config since.
Doug G
Reply With Quote

connection, idle, min, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
python3 idle Aisthesis Using Fedora 5 30th May 2010 01:36 AM
cannot ssh to the box after being idle for a while janes Using Fedora 3 18th December 2009 06:28 PM
using too much cpu at idle 19bab79 Installation, Upgrades and Live Media 4 5th August 2008 04:22 AM
FC4 APM suspend when idle toddbr Hardware & Laptops 0 1st August 2005 08:56 PM
Load at idle is 1.00 Kilo Using Fedora 8 28th May 2004 01:25 PM

Current GMT-time: 11:48 (Sunday, 20-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat