Git does not ask for passphrase during pull/push in terminal

Posted by Damian on Ask Ubuntu See other posts from Ask Ubuntu or by Damian
Published on 2012-10-21T16:04:33Z Indexed on 2012/10/21 17:19 UTC
Read the original article Hit count: 283

Filed under:
|

I'm trying to use git from the terminal in my Ubuntu 12.04 desktop. My repository is hosted in Github, and I have the a key for my desktop. Whenever I do either "git pull" or "git push," a dialog box will pop up asking for my passphrase. This works fine if I type the passphrase correctly. However, if I'm connected to my desktop through ssh and do a git pull or push, the command does not prompt the passphrase and it outputs the following error:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

This error makes sense because I'm not inputting my passphrase. So the question is, how can I get the passphrase prompted in the terminal?

Thanks!

© Ask Ubuntu or respective owner

Related posts about ssh

Related posts about git