我正在使用 ssh 密钥,但有一天突然停止工作。这就是我尝试克隆时得到的结果。此外,known_hosts 文件中没有任何内容。我该怎么办?
sarthak@Sarthak:~/.ssh$ git clone git@github.com:sarthmit/Andrew-Ng-ML-solutions.git
Cloning into 'Andrew-Ng-ML-solutions'...
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
sarthak@Sarthak:~/Desktop/Web Scraping$ ssh -vvv git@github.com
OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "github.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to github.com [192.30.253.113] port 22.
debug1: Connection established.
debug1: identity file /home/sarthak/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/sarthak/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/sarthak/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/sarthak/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/sarthak/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/sarthak/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/sarthak/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/sarthak/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
debug1: ssh_exchange_identification:
debug1: ssh_exchange_identification:
debug1: ssh_exchange_identification: Error: Must authenticate before using this service.
ssh_exchange_identification: Connection closed by remote host
Run Code Online (Sandbox Code Playgroud)
debug1: Connecting to github.com [192.30.253.113] port 22.
Run Code Online (Sandbox Code Playgroud)
那看起来不像 github IP
debug1: ssh_exchange_identification: Error: Must authenticate before using this service.
Run Code Online (Sandbox Code Playgroud)
那不是 SSH 识别字符串。
您正在从一些代理/防火墙后面进行连接,这会阻止您使用 SSH。您应该与您的网络管理员交谈。
或者使用 HTTPS 克隆您的 github 存储库。
归档时间: |
|
查看次数: |
17365 次 |
最近记录: |