Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start process over ssh that doesn't terminate when session ends?

Is there a way to start a process using ssh that doesn't terminate when the ssh session terminates? I want the job to keep running on the computer I'm ssh-ing into without me having to keep the connection open.

like image 403
HighCommander4 Avatar asked Dec 09 '22 17:12

HighCommander4


2 Answers

you can use nohup (assuming you are SSHing into *nix server)

like image 76
ghostdog74 Avatar answered Jan 12 '23 22:01

ghostdog74


You could use the screen utility.

like image 26
Luke Quinane Avatar answered Jan 12 '23 21:01

Luke Quinane