Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-25-2010, 12:44 PM   #1
Registered: Feb 2010
Distribution: CentOS,openSUSE
Posts: 30

Rep: Reputation: 16
log into or log off an idle session

I've searched but have not found a clear answer on how to log out an idle session.
I was using putty to connect to a Debian machine to edit my .profile file. I got disconnected. Ideally I would want to log back into my own session. If anyone can let me know how to do it, please? If not I want to open a new session and then log off my first session (see below pts/0). Thanks:

[samuel@debian ~]$ w
13:31:02 up 3:18, 2 users, load average: 0.00, 0.00, 0.00
samuel pts/0 windows-wrkst 13:25 5:04 0.18s 0.06s vim .profile
samuel pts/1 d1161-7483cto.hc 13:27 0.00s 0.70s 0.32s w
[samuel@debian ~]$ who -u
samuel pts/0 2010-02-25 13:25 00:06 7273 (windows-wrkst)
samuel pts/1 2010-02-25 13:27 . 7322 (windows-wrkst)
Old 02-25-2010, 12:49 PM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
If you want to be able to continue sessions after disconnect consider running screen when you login. Typically the disconnection behavior can be controlled either through the .profile or /etc/ssh/sshd_config

If you need a basic screen tutorial check out this article I wrote:
1 members found this post helpful.
Old 02-25-2010, 12:52 PM   #3
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-14.2; -current
Posts: 244

Rep: Reputation: 60
You can run something like 'ps x | grep bash', then kill any shells that are not your current with 'kill <PID of shell>'. (Ignore the 'grep bash' in that output.)
1 members found this post helpful.


idle, session

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
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 04:14 PM
Automatically log out idle users rozilla Linux - Software 4 03-24-2009 06:06 PM
What the %$#@ is pam_unix (cron:session) doing every ten minutes? (/var/log/auth.log) CoffeeKing!!! Linux - Security 3 02-05-2009 07:07 AM
Auto log off idle users? uid0sd Linux - Software 2 03-20-2007 03:31 PM
Opennms Logs - where are web.log, web_rtc.log and webauth.log referenced? not_much_of_a_guru Linux - Networking 0 07-12-2006 10:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 AM.

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