Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用git的ssh\u exchange\u标识错误_Git_Github_Ssh_Gitlab - Fatal编程技术网

使用git的ssh\u exchange\u标识错误

使用git的ssh\u exchange\u标识错误,git,github,ssh,gitlab,Git,Github,Ssh,Gitlab,在一段时间没有使用git之后,突然我无法使用任何远程设备进行任何操作(pull/push等等)。我也尝试了Gitlab存储库,但得到了相同的结果,所以我想我的计算机发生了一些变化。你知道这是什么吗 Kostass-MacBook-Air:slot masterakos$ ssh -vvv git@github.com OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /etc/ssh/ssh_config debu

在一段时间没有使用git之后,突然我无法使用任何远程设备进行任何操作(
pull
/
push
等等)。我也尝试了Gitlab存储库,但得到了相同的结果,所以我想我的计算机发生了一些变化。你知道这是什么吗

Kostass-MacBook-Air:slot masterakos$ ssh -vvv  git@github.com
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to github.com port 22.
debug1: Connection established.
debug1: identity file /Users/masterakos/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/masterakos/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/masterakos/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/masterakos/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/masterakos/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/masterakos/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/masterakos/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/masterakos/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: ssh_exchange_identification: HTTP/1.1 400 Bad Request

尝试:sudo vi+48/etc/ssh/ssh#u config在这一行的开头放一个#。@GovindParashar尝试了,但我没有得到
debug1:/etc/ssh/ssh#config行48:为*
行应用选项,但同样的结果是,下面的400个错误请求可能有助于删除相应的公钥文件。“ssh\u交换\u标识:HTTP/1.1 400错误请求“您连接的是HTTP服务器,而不是SSH服务器。谢谢@Kenster,这似乎就是问题所在,再次感谢您的提醒。如果不是正确的ssh服务器,请允许我询问您是否可以找到连接的位置。例如,端口22上没有运行任何内容。还有什么呢?