Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-26-2011, 11:52 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Angry How to restore ssh (pts) session after client's disconnetion?

Is there any way to restore ssh (pts) session after client's disconnetion?

Here is an algorythm:
1. # ssh
2. open several interactive programms (mc, vim etc)
3. plug of network cable from client's computer :-)
4. open ssh connection from another computer and run:
# who
username pts/3 Apr 10 14:04 ( <------ this session must be restored
root pts/6 Apr 2 11:04 (
root pts/7 Apr 5 15:39 (
5. what to do?
Old 08-26-2011, 11:55 AM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
AFAIK, that is not possible after the fact.

Next time use GNU screen or tmux.
Old 08-27-2011, 01:10 AM   #3
LQ Newbie
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Originally Posted by anomie View Post
AFAIK, that is not possible after the fact.

Next time use GNU screen or tmux.
Any other suggestions?
Old 08-27-2011, 05:10 AM   #4
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
you could unfortunately just 'kill' the disconnected user to 'logoff'


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
Connect via SSH to remote /dev/pts/X antonko Linux - Newbie 2 01-23-2011 10:40 AM
How to kill a session in "pts/0" idle for 209d? (Redhat-9) francio Linux - Newbie 2 07-28-2004 06:54 PM
Humorous pts/## problem with SSH and X-Forwarding KneeLess Linux - Networking 0 04-12-2004 06:54 PM
How do I clear a stale pts session after vncserver? mindmerge Linux - General 0 04-07-2004 01:07 AM
Watching SSH pts/# connections live... KneeLess Linux - Networking 4 01-22-2004 07:42 PM > Forums > Linux Forums > Linux - Newbie

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