while connecting to a host using fabric in python, getting a prompt(Login password for 'root':) asking for root password
<p>In python file code is something like this:
with settings(host_string=elasticIP, key_filename = '/path/to/keyfile.pem', user = 'root', use_ssh_config = False):
     run("any command")</p>

<p>After executing this, a prompt appears in console stating "Login password for 'root':" As we dont have a password for this user 'root' so we are not sure what password to provide, but, randomly giving any text as a password for 'root' in the console it accepts and moves further.</p>

<p>When we run same python program in background using nohup then same prompt sometimes appears sometimes  it dose not appears.</p>

<p>We are working on eucalyptus instances and hope environment is not an issue here.
Please suggest...</p>

<p>When you are using <code>settings</code>, donât use <code>run</code>, use <code>execute</code>.</p>

<pre><code>from fabric.decorators import task
from fabric.operations import run, execute

def my_command():
    run('echo "hello fabric!"')

@task
def my_task():
    with settings(host_string=elasticIP, key_filename = '/path/to/keyfile.pem', user = 'root', use_ssh_config = False):
        execute(my_command)
</code></pre>

python shell unix root fabric