[capistrano] How do I stop Capistrano from caching my sudo password?

2011-06-01 Thread PeterBu
I'm using capistrano to deploy to 2 webservers (Trilby Slouch), for deploy:setup I need to supply my password for sudo on each server. (fine so far) I have different passwords on different servers, and after Trilby asks me for my pasword, capistrano seems to cache my response, and supply it to

Re: [capistrano] How do I stop Capistrano from caching my sudo password?

2011-06-01 Thread Lee Hambley
Can anyone suggest how I can stop Capistrano from trying to cache my password? Use SSH keys. There's basically no good reason not to do so in 2011, and deploying on servers which still use passwords is just not smart (with the immense power of password cracking tools) Future versions of

Re: [capistrano] How do I stop Capistrano from caching my sudo password?

2011-06-01 Thread Lee Hambley
And, if your problem *only* relates to sudo passwords, you should endeavor not to require sudo (restart, use monit and checksum the REVISION file, trigger a restart). Failing that, ensure that there's a group of users with access to the restart commands passwordless via sudo groups. - Lee -- *