连接到godaddy共享帐户上的git仓库的问题 [英] Problems with egit connecting to a git repository on a godaddy shared account

查看:225
本文介绍了连接到godaddy共享帐户上的git仓库的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在godaddy的共享服务器帐户预装了git 1.7.1版本。我已经设置了一个这个策略的裸机,



http://git-scm.com/book/en/Git-on-the-Server-Getting-Git-ona-a-服务器



当我尝试通过eclipse中的egit推送我得到这个错误,


无法连接到任何URI:ssh:// url:22 / git-test / test.git
(ssh:// url:22 / git-test / test) git:连接失败)


然而在Putty中使用相同的身份验证没有问题。



我最后想要做的是在godaddy帐户上设置一个git仓库,这将允许从几个偏远地点开发网站,然后允许推送到生产。



没有git-daemon可用,但显然根据上述链接不需要。



这可能是服务器配置或egit侧的远程设置的问题。

解决方案

确保您起诉您的回购的完整路径

  git remote set-url origin ssh://username@domain.com/home/username/path/git-test/test.git 

(附 test.git 是一个裸回购 后接收挂钩更新实时网站



先从命令行尝试(不需要putty),然后再使用在Eclipse / EGit上更改您的远程URL。



您不需要指定端口号(22是ssh的默认端口号)。


Our shared server account at godaddy comes preinstalled with git version 1.7.1. I've set up a bare repository following this strategy,

http://git-scm.com/book/en/Git-on-the-Server-Getting-Git-on-a-Server

When I attempt to push via ssh in egit in eclipse I get this error,

Can't connect to any URI: ssh://url:22/git-test/test.git (ssh://url:22/git-test/test.git: connection failed)

And yet using the same authentication in Putty I have no problem.

What I eventually want to do is to set up a git repository on the godaddy account that will permit development of the website from a few remote locations and then permit a push to production-live.

There is no git-daemon available, but apparently it isn't needed according to the above link.

This could be a problem with server configuration or remote setup on the egit side.

解决方案

Make sure you are suing the full path of your repo

git remote set-url origin ssh://username@domain.com/home/username/path/git-test/test.git

(with test.git being a bare repo, with a post-receive hook to update the live site)

Try it from the command line first (no need for putty), then change your remote url on Eclipse/EGit.

You don't need to specify the port number (22 being the default one for ssh).

这篇关于连接到godaddy共享帐户上的git仓库的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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