使用git命令克隆项目
git clone git@gitee.com:litongjava_admin/spring-boot-2.0.7-hello-jenkins.git
出现下面的错误
正克隆到 'spring-boot-2.0.7-hello-jenkins'...
The authenticity of host 'gitee.com (212.64.62.174)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitee.com,212.64.62.174' (ECDSA) to the list of known hosts.
git@gitee.com: Permission denied (publickey).
fatal: 无法读取远程仓库。
请确认您有正确的访问权限并且仓库存在。
root@litong-Inspiron-3458:~/dev_workspace/java/spring-boot# git ls-remote git@gitee.com:litongjava_admin/spring-boot-2.0.7-hello-jenkins.git
git@gitee.com: Permission denied (publickey).
fatal: 无法读取远程仓库。
请确认您有正确的访问权限并且仓库存在。
项目的git地址是
git协议地址
git@gitee.com:litongjava_admin/spring-boot-2.0.7-hello-jenkins.git
https协议地址
https://gitee.com/litongjava_admin/spring-boot-2.0.7-hello-jenkins.git
使用https克隆成功
git clone https://gitee.com/litongjava_admin/spring-boot-2.0.7-hello-jenkins.git
为什么使用https协议clone成功,使用git协议确实失败呢?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…