[Django]-Fabric asks for password even though I can SSH using credential

26👍

You can add:

ssh.util.log_to_file("paramiko.log", 10)

To the top of your fabfile, after the imports, to get more detailed information about the authorization process.

👤Morgan

10👍

For me, I had to reset SSH agent identities with:

ssh-add -D

Then add my key back with:

ssh-add -K keyname

Careful, this will delete all identities from SSH agent.

2👍

I had to update fabric (probably after osx update):

sudo pip install --upgrade fabric
👤jduhls

0👍

In my case, I was unable to see anything helpful in the log files. I was able to connect, however, after first connecting to the server using ssh and enabling ssh-agent forwarding:

ssh -A <user>@<host>

Then I ran fab and was connected without being asked for a password as expected.

👤mepler

Leave a comment