pythonfabric

fabric password


Every time fabric runs, it asks for root password, can it be sent along same for automated proposes.

fab staging test

Solution

  • fab -h will show you all the options, you can also read them here.

    In particular, and I quote,

    -p PASSWORD, --password=PASSWORD

    Sets env.password to the given string; it will then be used as the default password when making SSH connections or calling the sudo program.