LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,
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
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
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, 01:49 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
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:
http://blog.pantek.com/opensores/200...ix-screen.html
 
1 members found this post helpful.
Old 02-25-2010, 01:52 PM   #3
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
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.
  


Reply

Tags
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 05:14 PM
Automatically log out idle users rozilla Linux - Software 4 03-24-2009 07:06 PM
What the %$#@ is pam_unix (cron:session) doing every ten minutes? (/var/log/auth.log) CoffeeKing!!! Linux - Security 3 02-05-2009 08:07 AM
Auto log off idle users? uid0sd Linux - Software 2 03-20-2007 04: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 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration