SmartGit 不会使用 ssh 进行身份验证 [英] SmartGit won't authenticate with ssh

查看:53
本文介绍了SmartGit 不会使用 ssh 进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个安装了 gitolite 的网络服务器,我使用我的 ssh 密钥登录.通常我只使用命令行在服务器上使用 git,但对于一个新项目,我需要在我的 Windows pc 上克隆一个 repo,我想为此使用 SmartGit.

I have a webserver with gitolite installed and where i login using my ssh key. Normally i just use git on the server itself using the command line but for a new project i need to clone a repo on my windows pc and i would like to use SmartGit for this.

但我已经花了几个小时才通过 Smartgit 克隆 repo.作为远程 Git,我使用我通常在服务器上使用的 url:me@my-server:the-repo 然后过了一会儿我得到一个对话框SSH 身份验证",我选择我的私钥,就像我对 pagent 所做的一样,并输入我的密码.但是当我单击登录时,它只是尝试连接一段时间,然后再次向我显示SSH 身份验证"对话框.没有错误信息或任何东西.

But i've spend several hours already just to clone the repo via Smartgit. As remote Git i use the url i normally would use on the server: me@my-server:the-repo then after a while i get a dialogue box 'SSH Authentication' and i select my private key, as i would do for pagent, and put in my Passphrase. But when i click login it just tries to connect for a while and then shows me the 'SSH Authentication' dialogue box again. No error message or anything.

我尝试通过命令行使用相同的数据克隆 repo,效果很好.那么有什么我遗漏的吗?

I tried the clone the repo with the same data via command line and that works just fine. So is there something i'm missing?

推荐答案

需要将我的 ssh 私钥保存为 PuTTYgen 因为 SmartGit 只理解那种格式.

Needed to save my ssh private key as an OpenSSH key in PuTTYgen because SmartGit only understand that format.

这篇关于SmartGit 不会使用 ssh 进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆