LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-28-2008, 04:41 PM   #1
manojg
Member
 
Registered: May 2004
Posts: 78

Rep: Reputation: 15
fixing logout time in remote computer


Hi,

Here is the example:

Mr. A connects his computer(Linux) to a remote computers(Linux) via ssh. I want to setup automatic logout time for him after he stop using it. How to do this?

Thanks.
 
Old 04-28-2008, 06:55 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
I think this is what you are looking for: http://thedaneshproject.com/posts/ho...eout-in-linux/
 
Old 04-30-2008, 08:04 AM   #3
manojg
Member
 
Registered: May 2004
Posts: 78

Original Poster
Rep: Reputation: 15
Thanks for this information. This is helpful.

I connect to the remote computer via ssh and I am being log out after certain time if I stop working. I checked the /etc/bashrc and /etc/csh.cshrc files in remote computer, and ~.bashrc and ~.cshrc files in my local computer but I could not find anything about the log out time. Where is this log out time hidden?
 
Old 04-30-2008, 08:23 AM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Is it your ssh session that is logging out or your remote bash session? If it's the bash session then you follow the instructions as per the link I provided. If it's the ssh session then take a look at your settings in your ~/.ssh/config config file.
 
Old 04-30-2008, 02:01 PM   #5
manojg
Member
 
Registered: May 2004
Posts: 78

Original Poster
Rep: Reputation: 15
I am not sure about the source of logging out. The massage is

Read from remote host abc.edu: Connection reset by peer.

Also, there is no ~/.ssh/config file.
 
Old 04-30-2008, 04:00 PM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
It could also be caused by a TCP timeout in your router or gateway that connects you to the network. Or the router/gateway on the receiving side... It all depends. Timeout can also be set in /etc/ssh/sshd_config
 
  


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
Remote login with SSH, but display on remote computer. brodin Linux - Software 3 09-09-2007 03:01 AM
remote logout of root account PirateJack Linux - Newbie 2 03-22-2006 04:33 AM
Time Zone Incorrect: trouble in fixing it sanmartin Linux - Hardware 4 03-05-2005 12:35 PM
Computer freeze on logout jaguar7 Linux - General 2 11-30-2003 06:55 AM
Remote logout aes12 Linux - General 3 04-08-2003 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:41 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