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

解决:

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

相关推荐
Discipline~Hai28 分钟前
ARM01-ARM体系架构
linux·c语言·arm开发·架构
RisunJan1 小时前
Linux命令-screen(终端复用器)
linux·运维
啊哦1111 小时前
安装VMware Workstation
linux·运维·服务器
持敬chijing2 小时前
Linux基础命令与目录命令
linux·运维·服务器
yunwei372 小时前
实证研究:AI Agent 规则需要上下文与分层强制执行
linux·安全·ai编程
小张成长计划..2 小时前
【Linux】12:进程状态
linux·运维·服务器
会周易的程序员2 小时前
Libnodave S7 通信库:架构设计与实现解析
linux·c++·物联网·架构·c·s7·工业协议
云栖梦泽3 小时前
Camera驱动开发与应用开发中的零拷贝与DMA
linux·驱动开发·嵌入式硬件
农村小镇哥3 小时前
C#中的字符串格式化
服务器·开发语言·c#
小秋求学记.5 小时前
Linux_Ubuntu的相关问题
linux·运维·ubuntu