title: Paramiko check login timeout of SSH Server
body: <p>I want to see how long it takes my ssh server to close the connection if the user does not login.</p>
  
  <p>What i have so far </p>
  
  <pre><code>self.sshobj = paramiko.SSHClient()
  self.sshobj.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  self.sshobj.connect("192.168.0.1", port=22, username="test", password="test")
  self.channel = self.sshobj.invoke_shell()
  </code></pre>
  
  <p>But the problem is that i don't want to login , which sshobj.connect does,  i want to be in the login screen.</p>
  
  <p><a href="https://i.stack.imgur.com/KpZoT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KpZoT.png" alt="Login Screen"></a></p>
  
  <p>And i want to check how long it takes for the server to close the connection.</p>
  
  <p><a href="https://i.stack.imgur.com/yVPpe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yVPpe.png" alt="enter image description here"></a></p>
  
  <p>Is there any way to do this via paramiko ?</p>