相关疑难解决方法(0)

git://协议被公司阻止,我该如何解决这个问题?

尝试git clone git://github.com/ry/node.git不起作用的东西会导致:

Initialized empty Git repository in /home/robert/node/.git/
github.com[0: 207.97.227.239]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
Run Code Online (Sandbox Code Playgroud)

但是,通过HTTP克隆工作正常.到目前为止,我已经收集到这是协议的问题,但我正在尝试安装需要命令的cloud9

git submodule update --init --recursive

它试图使用git://协议并失败.有没有办法改变命令的工作方式?

git github

184
推荐指数
4
解决办法
8万
查看次数

git clone永远挂在github上

当我在github 指南中关注第5点(测试一切)时,ssh命令也会永远挂起.根据指南,我应该收到一条消息"Github不提供shell访问".以下是我的输出来自ssh -vT git@github.com

debug1: Authentication succeeded (publickey).
Authenticated to github.com ([207.97.227.239]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LC_MESSAGES = en_US.UTF-8
debug1: Sending env LC_COLLATE = en_US.UTF-8
debug1: Sending env LANG = da_DK.UTF-8
debug1: Sending env LC_CTYPE = en_US.UTF-8
Run Code Online (Sandbox Code Playgroud)

git ssh github

37
推荐指数
4
解决办法
8万
查看次数

为什么Jenkins在从git获取时失败,而命令行不是?

我所有的Jenkins构建都在失败git fetch.

它失败了 git fetch --tags --progress git@bitbucket.org:ethenwilson/whentoact.git

Started by user anonymous
Building in workspace /Users/ethen/.jenkins/workspace/Build NikNik
 > git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
 > git config remote.origin.url git@bitbucket.org:ethenwilson/whentoact.git
Fetching upstream changes from git@bitbucket.org:ethenwilson/whentoact.git
 > git --version
using GIT_SSH to set credentials NikNik BitBucket SSH Key
 > git fetch --tags --progress git@bitbucket.org:ethenwilson/whentoact.git +refs/heads/*:refs/remotes/origin/*
FATAL: Failed to fetch from git@bitbucket.org:ethenwilson/whentoact.git
hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:ethenwilson/whentoact.git
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
    at …
Run Code Online (Sandbox Code Playgroud)

git ssh bitbucket git-fetch jenkins

25
推荐指数
4
解决办法
4万
查看次数

来自 gitlab-ci docker 的 SSH 在“SSH2_MSG_KEX_ECDH_REPLY”上失败

我正在尝试从 GitLab CI 中运行的 Docker 部署容器通过 SSH 连接到远程网络服务器。我第一次尝试时确实成功连接了一次。现在它不断失败:调试输出的最后两行(完整输出如下)是:

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Connection closed by ********** port 22
Run Code Online (Sandbox Code Playgroud)

部署任务首先从 GitLab CI“秘密变量”复制 SSH 私钥(公钥当然位于~/.ssh/authorized_keys远程)。完整的部署任务定义为gitlab-ci.yml

.deploy: &import_deploy
    stage: deploy
    image: **********
    tags: [ek-docker]
    before_script:
        # install openssh & rsync
        - apk update && apk --no-cache add rsync openssh
        # copy private key from GitLab secret variable to container
        - mkdir -p ~/.ssh
        - chmod 700 ~/.ssh
        - eval $(ssh-agent -s)
        - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
        - …
Run Code Online (Sandbox Code Playgroud)

ssh docker gitlab-ci

5
推荐指数
1
解决办法
3668
查看次数

如何解决端口 22 连接超时

ssh: connect to host bitbucket.org port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

我的防火墙被禁用,我仍然连接超时。我该怎么办?

git ssh bitbucket

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

git ×4

ssh ×4

bitbucket ×2

github ×2

docker ×1

git-fetch ×1

gitlab-ci ×1

jenkins ×1