I try running a python program on a remote server using nohup as explained in: How to keep processes running after ending ssh session?
When I do ssh server -C "nohup prog.py &", the python program exists with BrokenPipeError: [Errno 32] Broken pipe.
When I do ssh server -C "nohup prog.py", the python program runs smoothly, but the ssh connection obviously stays alive. Once I ctrl^c it, I get the Broken pipe error again.
Obviously I'm missing something here, but no idea what.