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

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

问题描述

我有一个安装了gitolite的webserver,并且使用我的ssh密钥登录。通常我只是在服务器本身上使用命令行来使用git,但对于一个新项目,我需要在Windows PC上克隆一个回购站,并且我想使用SmartGit。



但我已经花了好几个小时才能通过Smartgit克隆回购。作为远程Git我使用我通常会在服务器上使用的URL:我@我的服务器:回购然后一段时间后,我得到一个对话框'SSH身份验证',我选择我的私钥,因为我会为pagent并放入我的密码。但是当我点击登录时,它只是尝试连接一段时间,然后再次向我显示SSH身份验证对话框。没有错误信息或任何东西。



我试图通过命令行克隆相同数据的回购,并且工作得很好。那么是否有我缺少的东西?

解决方案

需要将我的ssh私钥作为OpenSSH密钥保存在 PuTTYgen ,因为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.

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.

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?

解决方案

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

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

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