How to run a console through SSH client and keep it open? [duplicate]












0
















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.










share|improve this 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. Try man screen

    – user535733
    Feb 5 at 12:48
















0
















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.










share|improve this 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. Try man screen

    – user535733
    Feb 5 at 12:48














0












0








0









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.










share|improve this question















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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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. Try man screen

    – user535733
    Feb 5 at 12:48














  • 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








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










1 Answer
1






active

oldest

votes


















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.






share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    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.






    share|improve this answer




























      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.






      share|improve this answer


























        2












        2








        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 5 at 13:14









        olivierb2olivierb2

        1,96989




        1,96989















            Popular posts from this blog

            How to make a Squid Proxy server?

            第一次世界大戦

            Touch on Surface Book