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?

2
  • 1
    It is like you lost your wallet. It is gone.
    – user68186
    Commented Dec 23, 2020 at 21:57
  • @user68186 but you found the wallet so I expect to get it back :) Commented Sep 19, 2023 at 22:13

2 Answers 2

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

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .