【问题标题】:error while cloning a project in moovweb from commandline从命令行克隆 moovweb 中的项目时出错
【发布时间】:2014-02-23 17:17:08
【问题描述】:

我是 moovweb 的新手。使用 gitbash 登录 moov 服务器。登录后,我尝试从 gitbash(以管理员身份)克隆在 moov 网站上成功创建的项目。我收到以下错误

$git clone moov@git.moovweb.com:bharath2k5/wikipedia.git
ssh:connect to host git.moovweb.com port 443: Bad file number
fatal:could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

这也是我的 .ssh/config。

Host git.moovweb.com
    IdentityFile ~/.ssh/id_rsa
     PreferredAuthentications publickey 
     Port 443

感谢您的帮助。

【问题讨论】:

    标签: moovweb


    【解决方案1】:

    您的计算机似乎无法连接到 moovweb git 服务器 (git.moovweb.com),因此它甚至没有进入身份验证步骤。我注意到您的 ssh 配置中有一条规则使用端口 443 而不是 22。您的网络是否阻止端口 22 访问?有可能即使配置好,git 仍然在使用 22 端口。您可以通过运行以下命令进行检查:

    最好的检查方法是在 git bash 中运行以下命令:

    $ ssh -vv moov@git.moovweb.com
    

    这应该会给你很多信息,包括 ssh 正在尝试使用哪个端口。

    无论如何,您可以通过更改用于克隆项目的 URI 来强制 git 在特定项目上使用端口 443。尝试以下方法,看看它是否有效:

    $ git clone ssh://moov@git.moovweb.com:443/bharath2k5/wikipedia.git
    

    如果这样可行,.ssh/config 中的Port 配置似乎不适用于 git 操作。

    【讨论】:

      猜你喜欢
      • 2016-10-27
      • 2019-01-09
      • 1970-01-01
      • 2020-03-15
      • 2022-11-25
      • 1970-01-01
      • 2018-07-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多