title: No response in ssh.exec_command in paramiko
body: <p>I am trying to use Python paramiko to execute commands on a remote server. When I run the following commands I get the prompt back and it appears to have succeeded as I get the prompt back</p>
  
  <pre><code>&gt;&gt;&gt; import paramiko
  &gt;&gt;&gt; ssh = paramiko.SSHClient()
  &gt;&gt;&gt; ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  &gt;&gt;&gt; ssh.connect('a.b.c.d', username='server', password='xyz')
  &gt;&gt;&gt;
  </code></pre>
  
  <p>The only response I get when I try to execute a command is
  []</p>
  
  <pre><code>&gt;&gt;&gt; stdin, stdout, stderr = ssh.exec_command("host")
  &gt;&gt;&gt; stdout.readlines()
  []
  </code></pre>
  
  <p>Almost any command gives this same output.
  The command "host" when ssh is executed from the shell gives several lines of Usage output</p>
  
  <p>I get this error if I don't give password</p>
  
  <pre><code>&gt;&gt;&gt; ssh.connect('a.b.c.d', username='server')
  Traceback (most recent call last):
   File "&lt;stdin&gt;", line 1, in &lt;module&gt;
   File "build\bdist.win32\egg\paramiko\client.py", line 307, in connect
   File "build\bdist.win32\egg\paramiko\client.py", line 520, in _auth
   paramiko.ssh_exception.SSHException: No authentication methods available
  </code></pre>
  
  <p>I don't know if the SSH connection is through and why commands are not being executed. </p>
  
  <p>Should something be added for authentication? Am I missing something?</p>