1

There are some questions for keeping a linux process on a remote PC, running after loosing ssh session.

  1. How to keep processes running after ending ssh session?
  2. How can I keep a process alive after closing the putty session?

But unfortunately, I accidently lost my ssh session on Windows Putty without any prior screen or nohup configuration. Is there a way to resume that lost ssh terminal process?

muru
  • 197,895
  • 55
  • 485
  • 740

2 Answers2

1

To maintain your session and contents during disconnection there are a number of options. My personal recommendation is tux..

https://linuxhandbook.com/tmux/

Think of it as a text/ncurses based window manager. It runs in the background and if you disconnect or your connection drops you can reattach to the session and it will be exactly how you left it.

e.g. (To start a new session)

tmux new-session

e.g. (To list existing sessions)

tmux ls

e.g. (To attach to an existing session)

tmux attach
Simon Banks
  • 1,337
0

Hello the way i know is you can use the command in screen sessions so even if you get disconnected you can still connect to it. I use it to run my minecraft server. and i can connect to it again with the following command

screen -r server simple right?