title: Python Paramiko SSH session not active after being idle for many hours
body: <p>I am using Python Paramiko <code>ssh.exec_command</code> to send commands to a slave machine from the master machine (from CentOS to CentOS). The master sends the command to the slave and waits (sleeps or does something meaningful) for it to be completed by the slave. The slave takes approximately 10 hours to complete the command. After 10 hours if the master sends the next command to the slave using <code>ssh.exec_command</code>, I get an error message saying SSH session is not active.
  I tried setting <code>ServerAliveinterval</code>, <code>TCPKeepAlive</code> in <code>ssh_config</code> file on both master and slave side. But nothing worked. What are all the other possibilities that I need to check to keep the SSH session active forever.</p>