nohup $python program.py &
-
first:
sudo nano /etc/ssh/sshd_config
-
add the following lines:
TCPKeepAlive no
ClientAliveInterval 30
ClientAliveCountMax 100
- last:
sudo service sshd restart
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
ssh [email protected] -p 26