LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-15-2005, 04:17 PM   #1
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 31
SSH-Autologout


Please help...I was wondering how do you get ssh to timeout and close connection after 20 minutes of inactivity. I am hoping to...stop those users from leaving a ssh session open while they are not using it... I am using suse pro and bash.

Also, if you can help, what is the best way to increase the cipher to aes256?

Thanks in advance for your help.

Last edited by XaViaR; 02-15-2005 at 04:23 PM.
 
Old 02-16-2005, 11:36 PM   #2
mastahnke
Member
 
Registered: Feb 2002
Location: IL
Distribution: Ubuntu currently, also Fedora, RHEL, CentOS
Posts: 111

Rep: Reputation: 15
From the sshd_config manpage

ClientAliveInterval
Sets a timeout interval in seconds after which if no data has
been received from the client, sshd will send a message through
the encrypted channel to request a response from the client.
The default is 0, indicating that these messages will not be
sent to the client. This option applies to protocol version 2
only.


In your sshd config, add the line

ClientAliveInterval 1200 #in seconds
Protocol 2 #Doesn't work on protocol 1

Then restart sshd and you are off and running.

For the AES,

once again in sshd_config (normally in /etc/ssh)

Add this line
CIPHERS aes256-cbc #you can add more options here, see man sshd_config for more


Restart sshd and again, everything is good
 
Old 02-17-2005, 10:42 AM   #3
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Original Poster
Rep: Reputation: 31
thanks for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
autologout, vnc Tredo Linux - General 0 12-16-2004 12:01 PM
terminal autologout FLOODS Linux - Newbie 2 01-25-2004 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration