Can EGit (Eclipse git plugin) use an SSH key instead of a username and password?

我怕爱的太早我们不能终老 提交于 2019-12-03 10:43:08

问题


The git central repository to which I need to commit is configured using SSH keys. My username is jmglov, but when I perform git operations (e.g. git clone), I use this configuration:

: jmglov@kitiara; cat .git/config 
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@git.example.com:AwesomeWare

When I try to use EGit in Eclipse to push to the origin, I'm prompted for a password for the git user, for which only SSH keypair authentication is enabled. My public key is one of the authorised keys for the git user.

Is it possible to configure EGit to use my SSH key instead of the git user's credentials?


回答1:


Yes, the configuration is picked up from the Eclipse preferences, as noted in the EGit user guide



来源:https://stackoverflow.com/questions/5935378/can-egit-eclipse-git-plugin-use-an-ssh-key-instead-of-a-username-and-password

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!