Git does not ask for passphrase during pull/push in terminal
- by Damian
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!