在执行ls-remote命令期间捕获SSH异常 [英] EGit SSH Exception caught during execution of ls-remote command

查看:507
本文介绍了在执行ls-remote命令期间捕获SSH异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我们的内部网络中建立了一个GIT服务器。我可以在服务器上使用git://...../和选项 - enable = receive-pack 推送到它。



但是当我尝试使用EGIT Eclipse插件(ssh:// username @ ip_adress:22 / project.git)通过ssh进行推送时,出现以下错误:


传输错误无法获取远程资源库引用。



原因:执行ls-remote命令期间发生异常。


什么可能会导致这种情况,我该如何解决它? $ c>和 ssh:// 使用不同的协议(请参阅 EGit User_Guide#Git_URLs )。所以要么在EGit中使用前者,要么确保ssh访问正常。


I set up a GIT Server in our internal network. I can push to it using git://...../ and with the option --enable=receive-pack on the server.

But when I try to push via ssh using EGIT Eclipse plugin(ssh://username@ip_adress:22/project.git) I get the following error:

Transport Error Cannot get remote repository refs.

Reason: Exception caught during execution of ls-remote command.

What might cause this and how do I solve it?

解决方案

git:// and ssh:// use different protocols (see EGit User_Guide#Git_URLs). So either use the former in EGit too or make sure ssh access works.

这篇关于在执行ls-remote命令期间捕获SSH异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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