Check whether a connection exists to a remote host using paramiko
<p>I'm using single object of <code>paramiko.SSHClient()</code> for executing a command on a remote machine. When I use <code>ssh.exec_command(cmd)</code>, and the connection to remote host is lost, <code>ssh.exec_command</code> hangs up.</p>

<p>Is there a way to check for connection existence before <code>ssh.exec_command()</code>?</p>
