为什么我无法连接到GitLab SSH服务器? 我的本地设置有问题,但我找不到。
$ ssh -Tv -p 9292 gitlab@svn.faktab.net
OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to svn.faktab.net [xxx.xx.xxx.xxx] port 9292.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/bls/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/bls/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/bls/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/bls/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/bls/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/bls/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/bls/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/bls/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
debug1: ssh_exchange_identification: HTTP/1.1 400 Bad Request
答案 0 :(得分:2)
HTTP / 1.1 400 Bad Request是来自您的网络服务器的回复。您使用的是错误的端口ssh。