简体   繁体   English

Eclipse:如何使用密钥文件在ssh上克隆git?

[英]Eclipse: How to clone git over ssh with keyfile?

Hey, I am using Eclipse (while running Ubuntu 10.10) and would like to connect to a remote git. 嘿,我正在使用Eclipse(运行Ubuntu 10.10时),并希望连接到远程git。 Normally I would use the egit plugin, but now I need to connect over ssh with keyfile . 通常我会使用egit插件,但现在我需要通过ssh与keyfile连接

Unfortunately egit has no "with keyfile" option, is there a way to connect to my repository with my keyfile? 不幸的是,egit没有“with keyfile”选项,有没有办法用我的密钥文件连接到我的存储库? Is there a "hidden" way to make Eclipse to pass parameters (-i keyfile) to ssh or something? 是否有一种“隐藏”方式使Eclipse将参数(-i keyfile)传递给ssh或其他东西?

http://wiki.eclipse.org/EGit/User_Guide/Remote - 我不得不在“密钥管理”选项卡中手动加载现有密钥。

I don't know anything about egit. 我对egit一无所知。 But what you usually do is: 但你通常做的是:

  1. Start ssh-agent (mine is automatically started, when my window manager starts, so you have to google a bit how to setup it) 启动ssh-agent(当我的窗口管理器启动时,我自动启动,所以你必须谷歌一点如何设置它)

  2. Run ssh-add [your key] 运行ssh-add [你的密钥]

  3. Use git over ssh as usual. 像往常一样在ssh上使用git。 It won't ask you for any passwords, since ssh-agent takes care of it. 它不会要求您提供任何密码,因为ssh-agent会处理它。

HTH HTH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM