I have fab file which contains
env['hosts'] = ['localhost']
env['user'] = 'code'
env['password'] = 'searce'
def mk_dirtree():
sudo("mkdir %s" % PROJECT_DIR)
sudo("chown -R code:code %s" % PROJECT_DIR)
run("mkdir -p %s" % (PROJECT_DIR + '/www/static'))
sudo("chown -R www-data:www-data %s" % (PROJECT_DIR + '/www'))
now when I do fab mk_dirtree
I am constantly prompt for [localhost] Login password for 'code':
I am running this on an ec2 instance to which I am connecting via ssh using key, and password login for ssh is disabled
EDIT:
I think fabric is first doing ssh code@localhost
but that wont work since password sshing is disabled