Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make eclipse remember ssh key passphrase?

I'm using Egit with Eclipse to use git and access github. Everything is working fine but one thing that I wish to omit to type id_rsa key passphrase everytime I push my commit to github.

I'm asked to enter passphrase each time I restart Eclipse and try to push.

Passphrase Request

How can I make eclipse remember passphrase so that I don't have to type manually?

Thanks

like image 592
TheKojuEffect Avatar asked Apr 29 '13 13:04

TheKojuEffect


People also ask

How do I enter a passphrase for SSH?

$ ssh-keygen -p -f ~/.ssh/id_ed25519 > Enter old passphrase: [Type old passphrase] > Key has comment '[email protected]' > Enter new passphrase (empty for no passphrase): [Type new passphrase] > Enter same passphrase again: [Repeat the new passphrase] > Your identification has been saved with the new passphrase.

What if I forgot SSH passphrase?

If you lose your SSH key passphrase, there's no way to recover it. You'll need to generate a brand new SSH keypair or switch to HTTPS cloning so you can use your GitHub password instead. If you lose your SSH key passphrase, there's no way to recover it.

Can you add a passphrase to an existing SSH key?

Adding or replacing a passphrase for an existing key To change your passphrase, you can simply run the ssh-keygen -p command. Specify the location of your current key, and input any old or new passphrases. There is no need to regenerate keys.


1 Answers

Even if ssh-add -l lists your passphrase-protected key, EGit may not honour it and still ask for passphrase.

To integrate with OS keyring on Ubuntu or Mac OS X put

export GIT_SSH=/usr/bin/ssh

to your ~/.bash_aliases or whenever applicable for your OS.

like image 91
Matt Avatar answered Sep 21 '22 08:09

Matt