git ssh总是连接

时间:2019-05-22 13:57:20

标签: git ssh

我今天为我的vim安装了YCM,然后我的git无法与ssh一起使用,但仍可以与https一起使用。

当我git push | pull | clone时,它什么也不响应。 像这样的img: response-nothing

如果我不使用ssh将远程原点更改为https,它将起作用。但是仍然无法使用gitlab | github服务器。

然后我可以使用相同的ssh_key SSH到其他Linux服务器。

➜  ~ ssh root@47.107.163.194
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-93-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
New release '16.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Welcome to Alibaba Cloud Elastic Compute Service !

Last login: Wed May 22 21:24:48 2019 from 115.236.174.130
root@iZwz93gpxv4kgz9gua6iauZ:~#

我谷歌搜索,并整日尝试所有事情。没有帮助。

以下是一些信息:

它将保持连接状态,什么也不会返回。

➜  ~ ssh -vvvT git@github.com
OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/xunlu/.ssh/config
debug1: /Users/xunlu/.ssh/config line 38: Applying options for github.com
debug1: /Users/xunlu/.ssh/config line 52: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to github.com port 22.
➜  ~ telnet github.com 22
Trying 52.74.223.119...
Connected to github.com.
Escape character is '^]'.
SSH-2.0-babeld-80573d3e

.ssh / config

Host *
  IdentityFile ~/.ssh/id_rsa
  AddKeysToAgent yes
  ForwardAgent yes

.gitconfig /全局

[diff]
    tool = meld
[core]
    excludesfile = ~/.gitignore
  editor = vim -f
[user]
    name = xunlu
    email = xunlu@helijia.com

.git / config local

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = true
[remote "origin"]
    url = git@github.com:g4rick/mapdog.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[user]
    name = g4rick
    email = 285699093@qq.com

我的iterm中的history并删除一些无用的信息。

10018  cd .vim/plugged/YouCompleteMe
10019  ./install.py --clang-completer --ts-completer
10020  git submodule update --init --recursive
10026  git config --global http.postBuffer 524288000
10027  git submodule update --init --recursive
10030  cd third_party/requests_deps
10032  rm -rf requests
10033  git clone https://github.com/requests/requests
10034  git config --global http.postBuffer 114288000
10035  git clone https://github.com/requests/requests
10037  ssh git@github.com:kennethreitz/requests.git
10038  git clone https://github.com/kennethreitz/requests.git
10039  git submodule update --init --recursive
10040  cd ..
10041  git submodule update --init --recursive
10042  git config --list
10043  git config --global http.postBuffer 5242880000
10057  git submodule update --init --recursive
10073  vim -r /Users/xunlu/workspace/magic-view/.git/COMMIT_EDITMSG
10074  gp
10075  git config --global http.postBuffer 524288000
10076  gst
10077  gl
10078  git reset HEAD
10079  gst
10080  gaa
10081  gc
10082  rm /Users/xunlu/workspace/magic-view/.git/.COMMIT_EDITMSG.swp
10083  gc
10084  cd .vim
10085  rm plugged/YouCompleteMe
10086  rm -rf plugged/YouCompleteMe
10087  cd ..
10088  vi .vimrc
10089  cd workspace/magic-view
10090  gst
10091  gc
10092  rm /Users/xunlu/workspace/magic-view/.git/.COMMIT_EDITMSG.swp
10093  gc
10094  gp
10095  top
10096  cd workspace/magic-view
10097  gp
10098  git config list
10099  git config --list
10100  git config http.postBuffer 524288000
10101  git config --global http.postBuffer 524288000
10102  P
10103  gp
10104  git http.postBuffer -h
10105  git --help
10106  git clean
10107  git clean
10108  git clean -f -n
10109  gp
10110  export GIT_TRACE_PACKET=1\nexport GIT_TRACE=1\nexport GIT_CURL_VERBOSE=1\n
10111  git postBuffer
10112  git config --show-origin --get-all http.postBuffer
10113  git config --global --unset http.postBuffer

0 个答案:

没有答案
相关问题