Answer by crimson-egret for ssh, screen, run command and detach in one go?
You are quite close, but you don't need the TTY for screen to startup - it creates it's own PTY. But you do need to put the ssh session in the background allowing the screen process to continue...
View Articlessh, screen, run command and detach in one go?
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@HOSTscreen -d -m...
View Article