fabric/fabric — Issue #497: --prompt-for-password-directly
Author: JensRantil
Created: 2011-12-12 11:26:51+00:00
State: open

I have a series of tasks that are executed serially. They take (in total) around an hour to execute. The last task asks for a sudo password. The problem is that the SSH connection (or is it the sudo prompt?) times out if I don't immediately note that the prompt is asking for my password.

I have no interest in using the `--password` parameter to `fab` since my password would end up in `.bash_history`, and I have no interest in hardcoding my password in my fabric files (because it is checked into a VCS).

So solve this issue, I have currently created the task `prompt_for_password()` that simply asks for the password and sets it in `env.password`. However, I propose either `--password PROMPT` flag or a `--prompt-for-password-directly` flag that will make `fab` initially ask for a password.

What do you think of this? Have I made myself clear?