git clone ssh地址
若出现密钥问题
The authenticity of host 't (118.25.166.124)' can't be established.
RSA key fingerprint is SHA256:jok3FH7q5LJ6qvE7iPNehBgXRw51ErE77S0Dn+Vg/Ik.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 't,118.25.166.124' (RSA) to the list of known hosts.
git@t: Permission denied (publickey).
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
1.需要输入以下指令创建公钥
ssh-keygen -t rea -b 4096 -C "github邮箱"
2.在~/ssh目录下产生了公钥文件id_rsa.pub 和 私人钥 id_rsa.rsa
3.把公钥内容复制到github的 Ssh And GPG KEYs一栏
接下来就可以重新进行克隆了。
本文发布于:2024-01-29 05:26:38,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170647720313015.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |