How to run a console through SSH client and keep it open? [duplicate]
This question already has an answer here:
Keep running a python program even after logging-off the ssh session [duplicate]
1 answer
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.
command-line server ssh nodejs
marked as duplicate by pa4080, karel, Charles Green, MadMike, Eric Carvalho Feb 5 at 22:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Keep running a python program even after logging-off the ssh session [duplicate]
1 answer
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.
command-line server ssh nodejs
marked as duplicate by pa4080, karel, Charles Green, MadMike, Eric Carvalho Feb 5 at 22:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Lookup how to use the "screen" application (among others), running on the server, to keep a virtual terminal open between connections. 'screen' is included with desktop and server flavors of Ubuntu - you probably already have it installed. Tryman screen
– user535733
Feb 5 at 12:48
add a comment |
This question already has an answer here:
Keep running a python program even after logging-off the ssh session [duplicate]
1 answer
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.
command-line server ssh nodejs
This question already has an answer here:
Keep running a python program even after logging-off the ssh session [duplicate]
1 answer
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.
This question already has an answer here:
Keep running a python program even after logging-off the ssh session [duplicate]
1 answer
command-line server ssh nodejs
command-line server ssh nodejs
asked Feb 5 at 12:38
MojimiMojimi
1185
1185
marked as duplicate by pa4080, karel, Charles Green, MadMike, Eric Carvalho Feb 5 at 22:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by pa4080, karel, Charles Green, MadMike, Eric Carvalho Feb 5 at 22:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Lookup how to use the "screen" application (among others), running on the server, to keep a virtual terminal open between connections. 'screen' is included with desktop and server flavors of Ubuntu - you probably already have it installed. Tryman screen
– user535733
Feb 5 at 12:48
add a comment |
1
Lookup how to use the "screen" application (among others), running on the server, to keep a virtual terminal open between connections. 'screen' is included with desktop and server flavors of Ubuntu - you probably already have it installed. Tryman screen
– user535733
Feb 5 at 12:48
1
1
Lookup how to use the "screen" application (among others), running on the server, to keep a virtual terminal open between connections. 'screen' is included with desktop and server flavors of Ubuntu - you probably already have it installed. Try
man screen– user535733
Feb 5 at 12:48
Lookup how to use the "screen" application (among others), running on the server, to keep a virtual terminal open between connections. 'screen' is included with desktop and server flavors of Ubuntu - you probably already have it installed. Try
man screen– user535733
Feb 5 at 12:48
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |
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.
add a comment |
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.
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.
answered Feb 5 at 13:14
olivierb2olivierb2
1,96989
1,96989
add a comment |
add a comment |
1
Lookup how to use the "screen" application (among others), running on the server, to keep a virtual terminal open between connections. 'screen' is included with desktop and server flavors of Ubuntu - you probably already have it installed. Try
man screen– user535733
Feb 5 at 12:48