SSH 密码停止工作

SSH 密码停止工作

因此,我尝试像往常一样通过 SSH 隧道连接到 MySQL 数据库,它提示我输入 ssh 密钥的密码。我像往常一样输入了密码,尽管我 100% 确定我输入了正确的密码,但它一直在询问,因此失败了。

我尝试了其他方法,比如从 github repo 拉取数据、登录服务器等等。似乎我的 ssh-key 突然有了不同的密码,但上次修改的日期是一年多以前。

发生了什么事?如果我不得不更改我的 ssh 密钥,那将是一件非常糟糕的事情。

我已经尝试改变它:

$ ssh-keygen -p -f ~/.old_ssh/id_rsa
Enter old passphrase:
Key has comment '/Users/noxoc/.old_ssh/id_rsa'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.

然而我仍然遇到同样的行为。

再次运行-vvv

$ ssh-keygen -vvv -p -f ~/.old_ssh/id_rsa
debug3: Incorrect RSA1 identifier
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>

这看上去很有希望,但同时又很糟糕。

相关内容