Bitbucket 的SSH keys 突然无法识别 -> Permission denied (publickey)问题
用了几年的SSH keys突然出现Permission denied (publickey)问题,如下图所示:
1、首先排查项目权限问题,确认其他账号可更新代码,排除
2、排除SSH keys的问题,按官网步骤重新生成keys后添加到云端:
https://bitbucket.askey.com.tw:8443/plugins/servlet/ssh/account/keys
https://confluence.atlassian.com/bitbucketserver069/creating-ssh-keys-986883932.html
生成keys的command:
ssh-keygen -t rsa -C "name@xxx.com"
结果还是Permission denied (publickey)
3、尝试用官网的解决方案: https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html
结果失败
4、 用以下command生成key,再同步到云端,问题解决
ssh-keygen -t ed25519
默认一直回车:
— END —