我在github上已經(jīng)設(shè)置好了ssh key:
但是通過ssh克隆github上的庫時,出現(xiàn)報錯:
我還缺少什么配置嗎?
補充:
ssh -vvv -T git@github.com
補充:
文件是已生成的
你缺少科學(xué)上網(wǎng)的配置?ssh -vvv -T git@github.com 看看。
git 沒有賬號的概念。
你這是不同的 ssh key,同一個 GitHub 賬號。
所有 GitHub 用戶都共享一個名叫 git 的 ssh 賬號。
根據(jù) ssh 調(diào)試信息,考慮防火墻(或者類似的網(wǎng)絡(luò)限制)的問題。檢查 Windows 防火墻設(shè)置、網(wǎng)絡(luò)設(shè)置(你的網(wǎng)絡(luò)是不是不允許訪問 22 端口什么的?有沒有透明代理?)、最后檢查中國特色的部分。
首先上圖
? .ssh ssh -vvv -T git@github.com
OpenSSH_7.3p1, OpenSSL 1.0.2j 26 Sep 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "github.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to github.com [192.30.253.112] port 22.
debug1: Connection established.
debug1: identity file /home/mugbya/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mugbya/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mugbya/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mugbya/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mugbya/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mugbya/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mugbya/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mugbya/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.3
debug1: Remote protocol version 2.0, remote software version libssh-0.7.0
debug1: no match: libssh-0.7.0
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to github.com:22 as 'git'
試了一下不太是ssh證書的問題,你繼續(xù)排查吧