On Ubuntu Mate, whenever I try to push to github, I get a dialog asking me to "Enter password to unlock the private key", instead of it it prompting me in the terminal. How do I configure ssh to ask me for my password in the terminal instead of the dialog?
I recently started seeing the same behaviour (for years it asked in the terminal). I think it turns out that having a id_rsa.pub in your ~/.ssh directory is what triggers the behaviour. I recently put it in there so that i could ssh-copy-id to one of my other servers. You could work around the issue by storing your public key elsewhere.
SSH Key Passphrase
You generally want to keep an ssh-key locked with a passphrase. But you can remove the passphrase security and you will stop receiving the prompt.
Ubuntu - GUI
Ubuntu comes with a program called Passwords and Keys. This software will let you manage many security credentials in Ubuntu.
Steps to disable private key passphrase:
I DO NOT RECOMMEND
Although this will stop the prompt I do not recommend keeping an ssh-key unlocked for security. If however you know this file will be secure on your private computer and you don't have access to high risk information go ahead.
Just remember:
Hope this helped.
man ssh-agent
andssh-add
. You runssh-add
to pass the pass phrase for your private key to ssh-agent (assuming that ssh-agent is running). Whenever ssh needs a pass phrase and ssh-agent is available, ssh will ask ssh-agent for the pass phrase instead of asking you.Note:You need to run ssh-add for all your private keys once per session.