title: fabric Low level connection error
body: <p>I have a fabric file <code>fabfile.py</code> that runs in python 2.7 and my code looks like:</p>
  
  <pre><code>from __future__ import with_statement
  from fabric.api import *
  from fabric.contrib.console import confirm
  from fabric.contrib.files import append, exists, sed
  
  env.hosts = ["127.0.0.1"]
  
  env.user = raw_input('Please enter user:')
  
  def check_dependency():
      sudo("apt-get update -y")
      sudo("apt-get install git -y")
      sudo("apt-get install postgresql libpq-dev python-dev python-pip -y")
      sudo("apt-get install redis-server -y")
      sudo("apt-get install nginx -y")
  </code></pre>
  
  <p>when I run the <code>fabfile.py</code> it asks for user and I gave it <code>sudo</code> because I want to test it in my machine. When I do that i get error saying <code>Fatal error: Low level socket error connecting to host 127.0.0.1 on port 22: Connection refused (tried 1 time)</code></p>
  
  <p>Why I am getting this error ? 
  Also what If I want to run this file in server? What should be the host and user ?</p>
  
  <p>Thank you</p>