django - fabric and git ask me passphrase -
i'm using fabric automate deploy.
if connect ssh production server:
freelance@freelance:~$ cd /var/www/freelance/ freelance@freelance:/var/www/freelance$ git pull up-to-date. freelance@freelance:/var/www/freelance$ git pull up-to-date. freelance@freelance:/var/www/freelance$ whoami freelance
git don't ask me (because have set keys on bitbucket).
but if use fabric, works, ask me passphrase:
(ve)bepxxx-3411:freelance d$ fab git_pull [peaidjosparino.cloudapp.net] executing task 'git_pull' [peaidjosparino.cloudapp.net] run: git pull [peaidjosparino.cloudapp.net] passphrase private key: [peaidjosparino.cloudapp.net] login password 'freelance': [peaidjosparino.cloudapp.net] out: up-to-date. [peaidjosparino.cloudapp.net] out: done. disconnecting peaidjosparino.cloudapp.net... done.
the user same, server same.
any ideas?
update: uname -a
(ve)bdxx-3411:freelance d$ fab test_prova [peaidjosparino.cloudapp.net] executing task 'test_prova' [peaidjosparino.cloudapp.net] run: uname -a [peaidjosparino.cloudapp.net] passphrase private key: [peaidjosparino.cloudapp.net] login password 'freelance': [peaidjosparino.cloudapp.net] out: linux freelance 3.13.0-24-generic #46-ubuntu smp thu apr 10 19:11:08 utc 2014 x86_64 x86_64 x86_64 gnu/linux [peaidjosparino.cloudapp.net] out: done. disconnecting peaidjosparino.cloudapp.net... done.
f
try use following
env.forward_agent = true
Comments
Post a Comment