git clone无法使用ssh

git clone git@gitlab:RD/coucou_web_backend.git
结果为
Cloning into 'coucou_web_backend'...
Permission denied (publickey).
fatal: Could not read from remote repository.

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

原因分析
查看gitlab的服务部署配置
发现服务器的10080端口对应着docker里面的22端口。
按理说 服务器的10080端口应该是开着的,但是现在是关着的。说明服务器配置那里给挡住了。

最后找到了aws的设置。把10080端口给开放开。
通过 ssh git@gitlab 发现成功了
搞定~

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容