Hi, Greetings. I am a beginner to Fabric and liking it. I am trying to login to 3 remote machines and getting their "/etc/*-release". My local machine is a windows machine where I have installed Cygwin and all the fabric related stuff. I have generated ssh key, copied the id-rsa.pub to authorized key and copied them over to the remote machines as well.
Despite doing them, I am unable to connect them without my password. Fabric is asking for logging into a remote machine. What is going wrong? What is the right way to use env.key_filename? Is there anything I have to import? Surprisingly, it asks for my password only once. It is not asking for the subsequent servers? Why? I do not want to do this in the command-line using "- i" option. I want this to be in the fab file itself.
Your help is much appreciated.
A min. working example is here:
===================================== from fabric.api import * from fabric.operations import local, put