I am using macOS BigSur. And I am running a script on a gpu on a remote machine using a ssh tunnel. Since the process is long I am using tmux and I want the process continues running when I disconnect from ssh. But the problem is that when ssh is disconnected, the tmux session is also killed.
What I do is as follows:
1- ssh into the remote machine
2- start tmux by typing tmux into the shell
3- start the process inside the started tmux session
4- leave/detach the tmux session by typing Ctrl+b and then d
But once I do that, when I come back and I connect to ssh I find that the process is killed.
Any help is really appreciated. I need to run a script for 3000 epochs and because of this problem I can't.
tmux lsto see open sessions and the attaching to the session withtmux attach-session -t session_name/number? If you can't maybe server killed tmux, try runningpsto see if tmux is running, if it is killed then all sessions are terminated. If it is running you can try to recreate its socket by sendingUSR1signal,pkill -USR1 tmux. - fedjedmedjed