Buy @ Amazon

Search This Blog

April 20, 2011

How to disable gnome-ssh-askpass?


Today we had setup Git repo with access to it through corporate's LDAP authentication. From the client machines we can access it using the .netrc (where the machine, login and password are configured).
However, for some wierd reason, upon trying to pull/push commits from/to the Git repository, the bash shell tries to open the gnome-ssh-askpass dialogue and it fails. I wanted to prevent the bash shell from attempting to launch the dialogue box. To do this, all I had to do is run the following command in the terminal:
$ unset SSH_ASKPASS

To prevent it in future, you can add the above line in your .bashrc or .bash_profile.

Wish you trouble-free working!

7 comments:

  1. Thanks for this advice. After hours of struggling with exactly this issue, this immediately fixed my problem!

    ReplyDelete
  2. Yeah, thanks for the post. This fixed the problem. I was completely confused.

    ReplyDelete
  3. I didn't spend much time fighting this. Google pointed me here and voila! problem solved! Thank you for saving my hair.

    ReplyDelete
  4. Definitely a helper post. Thanks for writing this. It solves my git pull issue :)

    ReplyDelete
  5. First I tried "unset SSH_ASKASS"... then I notice that ssh should never ask for an ASS! LOL

    Thanks for this tip! I feel better now.

    ReplyDelete

Like it or hate it, feel free to share your feedback. Cheers!