Guest User

Untitled

a guest
Jul 25th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Fabric asks for password even though I can SSH using credential
  2. $ fab live pull
  3. [mysite.com] Executing task 'pull'
  4. [mysite.com] run: test -d proj
  5. [mysite.com] run: test -d proj/.git
  6. [mysite.com] run: git pull origin master
  7. ...
  8.  
  9. $ fab staging pull
  10. [dev.mysite.com] Executing task 'pull'
  11. [dev.mysite.com] run: test -d proj
  12. [dev.mysite.com] Login password:
  13.  
  14. def staging():
  15. env.hosts = ['dev.mysite.com']
  16. env.user = 'bamboo'
  17. env.key_filename = '~/.ssh/id_dsa_bamboo'
  18.  
  19. $ ssh bamboo@dev.mysite.com -i ~/.ssh/id_dsa_bamboo
  20. Last login: Wed Apr 11 06:24:28 2012 from xxx.xxx.xx.xx
  21. [bamboo@dev ~]$
  22.  
  23. Host dev.mysite.com
  24. User bamboo
  25. IdentityFile ~/.ssh/id_dsa_bamboo
  26. ForwardAgent yes
  27.  
  28. ssh.util.log_to_file("paramiko.log", 10)
Add Comment
Please, Sign In to add comment