LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-12-2016, 12:04 PM   #1
ut0ugh1
Member
 
Registered: Oct 2011
Posts: 59

Rep: Reputation: Disabled
restore dropped ssh and relative programm sessions


Is there a way to restore dropped ssh and relative programm sessions
Code:
 1673 pts/2    Ss     0:00 -bash LC_PAPER=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LANG=it_IT.
 1718 pts/2    SNl+  22:15  \_ hashcat -m 1800 -a 3 -o found1.txt Lnk_Administrator.hash -i --increment-min 4 --
 1659 pts/1    Ss     0:00 -bash LC_PAPER=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LANG=it_IT.
 1743 pts/1    R+     0:00  \_ ps ef LC_PAPER=en_US.UTF-8 XDG_SESSION_ID=13 LC_MONETARY=en_US.UTF-8 TERM=xterm S
  750 tty7     Ssl+   0:00 /usr/bin/Xorg :0 -novtswitch -background none -noreset -verbose 3 -auth /var/run/gdm3
  723 tty1     Ss+    0:00 /sbin/agetty --noclear tty1 linux LANG= PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin
In particular the redhighlithed process thx in fwd
 
Old 02-13-2016, 06:21 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
No. Next time, to guard against dropping SSH sessions too easily use 'autossh' and to re-enter shell sessions use 'screen' or 'tmux'. (If it's about output notice you have "-o found1.txt" so you could just tail the file?)
 
Old 02-13-2016, 06:26 AM   #3
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,453

Rep: Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504
more than one way....

Another option, examine MOSH. I have used it to reconnect to a session after broken network links, but like the other solutions you have to decide to use it BEFORE you start the session, not later.
 
  


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
Dropped SSH connections SirSefu Linux - Networking 1 09-14-2009 09:55 PM
is there a way to restrict ssh sessions to a specific ssh client? smbhat Linux - Networking 8 03-11-2009 07:36 AM
How window in programm can be resized by another programm. rexStart Programming 1 09-23-2008 02:47 AM
Dropped/hung TCP sessions on both NIC's, Compaq server with Debian doctorcisco Linux - Networking 1 01-16-2006 08:16 AM
SSH help, concerning sessions frokid879 Linux - Newbie 4 11-11-2005 11:22 AM

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

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