title: How use Connection in Fabric 2?
body: <p>I'm trying to connect to host and run command with module Fabric 2 and have this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "Utilities/fabfile.py", line 4, in &lt;module&gt;
      res.run('uname -s')
    File "&lt;decorator-gen-3&gt;", line 2, in run
    File "/usr/local/lib/python2.7/dist-packages/fabric/connection.py", line 29, in opens
      self.open()
    File "/usr/local/lib/python2.7/dist-packages/fabric/connection.py", line 501, in open
      self.client.connect(**kwargs)
    File "/home/trishnevskaya/.local/lib/python2.7/site-packages/paramiko/client.py", line 424, in connect
  passphrase,
    File "/home/username/.local/lib/python2.7/site-packages/paramiko/client.py", line 715, in _auth
  raise SSHException('No authentication methods available')
  paramiko.ssh_exception.SSHException: No authentication methods available
  </code></pre>
  
  <p>Simple code from docs (<a href="http://docs.fabfile.org/en/latest/getting-started.html" rel="nofollow noreferrer">http://docs.fabfile.org/en/latest/getting-started.html</a>):</p>
  
  <pre><code>from fabric import Connection
  
  res = Connection('&lt;host-ip&gt;')
  res.run('uname -s')
  </code></pre>
  
  <p>Accoding to docs, I don't need in special configs, but it's doesn't work...</p>
  
  <p>fabric 2.1.3 <br/>
  python 2.7.14</p>