Code aliyun git 問題記錄

一、添加SSH Key

路徑:code.aliyun.com進(jìn)去后,直接點(diǎn)設(shè)置即可看見SSH Key

二、生成SSH Key后并添加到阿里云仍然報(bào)錯(cuò)

git clone git@code.aliyun.com:tangkun54/TKTestProjects.git
Cloning into 'TKTestProjects'...
kex_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解決:阿里云屏蔽了部分IP地址,換個(gè)網(wǎng)絡(luò)即可解決

三、檢查SSH 鏈接報(bào)錯(cuò)如下

ssh -vT git@code.aliyun.com
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug1: Connecting to code.aliyun.com [120.55.150.20] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\tangk/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_ed25519-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_xmss type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\tangk/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
ssh_exchange_identification: read: Connection reset
PS D:\Tangkun\WorkSpace> git clone git@code.aliyun.com:tangkun54/TKTestProjects.git
Cloning into 'TKTestProjects'...
kex_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
注意,debug1: key_load_public: No such file or directory是對(duì)下一句的描述,信息debug1: identity file C:\Users\tangk/.ssh/id_rsa type 0,表示id_rsa找到了
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容