ssh生成时注意事项

生成ssh

bash 复制代码
ssh-keygen -t rsa -C "your_email@template.com.cn"

重新生成ssh后,拉代码时遇见

bash 复制代码
remote:
remote: ========================================================================
remote:
remote: The project you were looking for could not be found or you don't have permission to view it.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.

and the repository exists.

原因:

重新生成ssh时,没有删除旧的id_rsa、id_rsa.pub

解决:

删除这两个文件之后,重新生成

相关推荐
lemons8406 分钟前
Web基础和HTTP协议
linux·运维·nginx·http·html
安全信息等保测评师21 分钟前
云海中的坚固灯塔:等保测评视角下的混合云安全策略与合规性深度剖析
linux·运维·服务器·网络·网络协议
猪大侠0.02 小时前
Centos7网络配置(设置固定ip)
linux·服务器·网络·centos
tq10862 小时前
复杂系统失效原理
运维·服务器·网络
Jim-2ha02 小时前
【LeetCode】20.Valid Parentheses(有效的括号)
linux·服务器·leetcode
阿杰小子2 小时前
Linux内核——Linux内核体系模式(二)
linux·运维·单片机
徐浩刚2 小时前
Linux环境下快速部署Spring Boot应用:高效命令组合实践
java·linux
你可以自己看3 小时前
深入解析Linux的使用(下)
linux·运维·服务器
扛枪的书生3 小时前
Linux 特权 SUID/SGID 的详解
linux
德育处主任3 小时前
『SD』薅羊毛!用4090显卡跑图
服务器·人工智能·aigc