0

I have a node application in development in a ubuntu server through SSH connection, I'm using bitvise ssh client, and running node server.js through its GUI terminal.

But then when I exit the ssh client, the server terminal is closed remotely, how can I keep it open? I'm not sure if the question is related to this specific client or to SSH in general.

Mojimi
  • 267

1 Answers1

2

Just use nohup command ending by &. So your node command will be like this :

nohup node server.js &

Note that all output of your node command will be written into nohup.log file. Also consider using systemd config to keep this script running into a production server.

ob2
  • 3,653