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

解决:

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

相关推荐
南棱笑笑生10 分钟前
20251129给荣品RD-RK3588开发板跑Rockchip的原厂Buildroot【linux-6.1】系统时适配AP6275P的蓝牙BLE
linux·运维·服务器·rockchip
c***21291 小时前
ubuntu 安装 Redis
linux·redis·ubuntu
u***32431 小时前
Mysql官网下载Windows、Linux各个版本
linux·数据库·mysql
小鹿学程序1 小时前
02-集群节点准备:克隆虚拟机
linux·服务器·apache
boligongzhu1 小时前
ubuntu20.04搭建YOLOv11 GPU运行环境
linux·yolo·ubuntu·机器人
c***72741 小时前
Linux下PostgreSQL-12.0安装部署详细步骤
linux·运维·postgresql
v***Y891 小时前
linux 设置tomcat开机启动
linux·运维·tomcat
松涛和鸣2 小时前
DAY20 Optimizing VS Code for C/C++ Development on Ubuntu
linux·c语言·开发语言·c++·嵌入式硬件·ubuntu
unclecss2 小时前
从 0 到 1 手写 Linux 调试器:ptrace 系统调用与断点原理
linux·运维·服务器·c语言·ptrace
last demo2 小时前
fail2ban实验
linux·运维·服务器·网络