LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-26-2011, 10:52 AM   #1
anthon
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 username@some.remotehost.com
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 (192.168.1.2) <------ this session must be restored
root pts/6 Apr 2 11:04 (192.168.1.3)
root pts/7 Apr 5 15:39 (192.168.1.4)
.....
5. what to do?
 
Old 08-26-2011, 10:55 AM   #2
anomie
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, 12:10 AM   #3
anthon
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
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, 04:10 AM   #4
lithos
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'
 
  


Reply



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

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

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