I like to start a server (basically a jupiter-notebook
) in a screen session within an SSH, let it run and then detach immediately. doing it one by one:
ssh USER@HOST
screen -d -m /home/USER/anaconda3/bin/jupyter-notebook --ip HOST --port 8889 --no-browser
then detach from screen and finally disconnect from SSH. Then use the server. Everything works in this case. One can also see that the screen is running by
ssh -t USER@HOST screen -ls
Now how do I do the former in one go?
ssh -t USER@HOST "screen -d -m /home/USER/anaconda3/bin/jupyter-notebook --ip HOST --port 8889 --no-browser"
does not work. What am I doing wrong?
thanks