文章目录
-
- [1、错误提示Your SSH key has expired](#1、错误提示Your SSH key has expired)
- 2、登录Github确认
- 3、重新设置秘钥
1、错误提示Your SSH key has expired
使用git命令时遇到Github 的 SSH Key秘钥过期,提示错误ERROR: Your SSH key has expired
2、登录Github确认
首先登录Github查看,头像->设置->SSH秘钥,发现确实过期了,接下来就是重新生成秘钥
3、重新设置秘钥
直接在项目目录下执行命令 ssh-keygen -t rsa -C "你的邮箱"
生成即可

然后进入刚刚生成的目录,把秘钥粘贴出来,放到Github上

Github添加秘钥(记得粘贴时带上开头的 ssh-rsa不需要去掉)->过期时间设置久一点,添加完成就ok了,回到项目里可以正常操作项目了。
