LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   restore dropped ssh and relative programm sessions (https://www.linuxquestions.org/questions/linux-newbie-8/restore-dropped-ssh-and-relative-programm-sessions-4175572101/)

ut0ugh1 02-12-2016 01:04 PM

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

unSpawn 02-13-2016 07:21 AM

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?)

wpeckham 02-13-2016 07:26 AM

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.


All times are GMT -5. The time now is 07:10 PM.