Code aliyun git 问题记录

一、添加SSH Key

路径:code.aliyun.com进去后,直接点设置即可看见SSH Key

二、生成SSH Key后并添加到阿里云仍然报错

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地址,换个网络即可解决

三、检查SSH 链接报错如下

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是对下一句的描述,信息debug1: identity file C:\Users\tangk/.ssh/id_rsa type 0,表示id_rsa找到了
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容