如何使eclipse记住ssh密钥密码? [英] How to make eclipse remember ssh key passphrase?
问题描述
我在Eclipse中使用Egit来使用git并访问github。一切工作正常,但我希望忽略键入code> id_rsa 键密码每次我推我的提交给github。
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.
每次重新启动Eclipse并尝试推送时,系统都会要求输入密码。
I'm asked to enter passphrase each time I restart Eclipse and try to push.
如何使eclipse记住密码以便我不必手动输入?
谢谢
Thanks
推荐答案
即使 ssh-add -l </ code>列出了你的密码保护密钥,EGit可能不尊重它并仍然要求密码。
Even if ssh-add -l
lists your passphrase-protected key, EGit may not honour it and still ask for passphrase.
在Ubuntu或Mac OS X上放置操作系统密钥环
To integrate with OS keyring on Ubuntu or Mac OS X put
export GIT_SSH=/usr/bin/ssh
添加到您的〜/ .bash_aliases
或适用于您的操作系统。
to your ~/.bash_aliases
or whenever applicable for your OS.
这篇关于如何使eclipse记住ssh密钥密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!