| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-04-2008, 11:35 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2007
Location: India
Distribution: RHEL
Posts: 26
Rep:
|
Enable connection timed out option in ssh
I want know how to enable the connection timed out options in ssh.
For example I want disconnect the users, whose are logged my sever by using ssh and the connections are idle more than 10 Minutes.
How we can do this? Pls any one help me.......?
|
|
|
|
10-04-2008, 12:28 PM
|
#2
|
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 531
Rep:
|
Try ClientAliveCountMax and ClientAliveInterval. This settings you can check out in "man sshd_config" they are explain there and how to set them. I have set ClientAliveCountMax to 60, but you can do it as its best for you.
Cheers!
|
|
|
|
10-05-2008, 01:44 PM
|
#3
|
|
Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,644
|
Or you could do it for all logins (not just ssh) by adding it to the system profile for the specific shell.
e.g. TMOUT=600 in /etc/bashrc for bash, or in /etc/profile for sh, and ksh. There is a similar timeout available for csh in /etc/login.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:22 PM.
|
|
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
|
|