I have a Virtual Machine that is running Ubuntu, and I can SSH into the Virtual Machine just fine. I can even start my python program over SSH using the following:
I am on a Windows machine, using Git Bash to SSH. If I start my python program this, way I have to leave the Git Bash window open. How can I start the python program without having to leave the Git Bash open on my Windows machine? Any help is much appreciated!
you can use
nohup python foldername/app.py &
Another option would be to use a virtual terminal, e.g:
Both of them should be available via the ubuntu package manager.
Then (after logging in via ssh) issue the following commands:
or for tmux
Then you can close your ssh connection and look at the output when you return later by typing
screen attach or
I'd personally recommend using tmux.
Two main approaches come to my mind, depending on what you are up to:<ol> <li>