LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 02-15-2005, 05:17 PM   #1
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 30
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 05:23 PM.
 
Old 02-17-2005, 12:36 AM   #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, 11:42 AM   #3
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Original Poster
Rep: Reputation: 30
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 03:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 10:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 12:53 PM
autologout, vnc Tredo Linux - General 0 12-16-2004 01:01 PM
terminal autologout FLOODS Linux - Newbie 2 01-25-2004 08:21 AM


All times are GMT -5. The time now is 09:17 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration