I got an account from my professor for our universities CUDA server for running some tests.

I am connecting via ssh over terminal. The thing is, as I close the terminal the server also seems to kill the running script. As I reconnect it has stopped.

No it is not possible that the script already terminated since those test runs should take a few hours even on those machine..

Can anybody help me here?

OS: Linux cuda01 3.13-1-amd64 #1 SMP Debian 3.13.7-1 (2014-03-25) x86_64 GNU/Linux

This is normal behavior. When you close the terminal, the SSH session terminates, killing all child processes. You need to use something like tmux or screen on the server to fork and create a persistent shell, which will continue to run after the ssh session terminates, and can be reconnected to when you log in again.

  • Exactly, simplest solution for you I think is screen. It's kind of a virtual terminal. Start it after logging in simply typing screen. Then "inside" of screen, start your script, and then you can detach from screen (Ctrl+A,D) and you are safe to log out. Next time when you login, type screen -r, it will reattach you to screen running in background. – rsm Aug 19 '14 at 16:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.