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

解决:

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

相关推荐
南宫码农1 分钟前
神马影视8.5版本如意伪静态+视频教程
linux·运维·centos
mftang17 分钟前
现代互联网安全的基石: SSL/TLS技术介绍
服务器·网络·ssl
坐怀不乱杯魂20 分钟前
Linux网络 - 网络层
linux·服务器·网络
j_xxx404_21 分钟前
Linux:命令行参数与环境变量
linux·运维·服务器
j_xxx404_29 分钟前
Linux:进程虚拟地址空间|虚拟内存管理
linux·运维·服务器
江畔何人初40 分钟前
pod的定义以及创建过程
linux·运维·云原生
德尔塔大雨淋1 小时前
VLLM 中的module PASS 和FUN PASS
linux·服务器·vllm
末日汐1 小时前
linux线程
linux·运维
玉梅小洋1 小时前
CentOS :yum源配置及验证指南
linux·运维·centos·yum
沐芊屿1 小时前
华为交换机配置M-LAG
服务器·网络·华为