I m using single object of paramiko.SSHClient() for executing a command on a remote machine.
so i m using ssh.exec_command(cmd)
But if the connection to remote host is lost, ssh.exec_command hangs up.
Is there a way to check for connection existence before ssh.exec_command()????