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>I diged more into this issue and finally got an answer:
file :/etc/ssh/ssh_config 
holds a property 'UserKnownHostsFile' and 'StrictHostKeyChecking'
these properties should be addressed as :
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
UserKnownHostsFile defines the storing of ssh and some metadata regarding to a particular machine. If there is a mismatch in these details it asks you to confirm whether the machine u SSHed is the correct machine or not.
So making these changes, all went well.
references:
<a href="http://linuxcommando.blogspot.in/2008/10/how-to-disable-ssh-host-key-checking.html" rel="nofollow">http://linuxcommando.blogspot.in/2008/10/how-to-disable-ssh-host-key-checking.html</a></p>

<p>and</p>

<p><a href="http://superuser.com/questions/19563/how-do-i-skip-the-known-host-question-the-first-time-i-connect-to-a-machine-vi">http://superuser.com/questions/19563/how-do-i-skip-the-known-host-question-the-first-time-i-connect-to-a-machine-vi</a></p>

python shell unix root fabric