eclipse关联git不成功,可以EGit(Eclipse git插件)使用SSH密钥而不是用户名和密码?...

当尝试使用EGit在Eclipse中推送至只允许SSH密钥认证的git仓库时,用户被提示输入git用户的密码。解决办法是通过Eclipse的首选项设置来指定使用SSH密钥。根据EGit用户指南,配置信息可以从Eclipse的偏好设置中获取并应用。
摘要由CSDN通过智能技术生成

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?

解决方案

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

3be02b7a0489055eff9077b4cdb49c37.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值