我一直使用没有密码的 ssh 密钥。我最后一次使用它是在昨天。
但现在,它突然需要密码:
> ssh-keygen -y
Enter file in which the key is (/home/vincentrolfs/.ssh/id_rsa):
Enter passphrase:
Load key "/home/vincentrolfs/.ssh/id_rsa": incorrect passphrase supplied to decrypt private key
私钥显然几个月来一直没有改变(自从我第一次创建它以来):
> stat ~/.ssh/id_rsa
File: /home/vincentrolfs/.ssh/id_rsa
Size: 1766 Blocks: 8 IO Block: 4096 regular file
Device: 10305h/66309d Inode: 933913 Links: 1
Access: (0600/-rw-------) Uid: ( 1000/vincentrolfs) Gid: ( 1000/vincentrolfs)
Access: 2020-05-27 13:03:14.278893290 +0800
Modify: 2019-11-28 05:16:54.391995203 +0800
Change: 2019-11-28 05:16:54.391995203 +0800
Birth: -
访问权限似乎正确(600):
> ls -l ~/.ssh
total 28
-rw-r--r-- 1 vincentrolfs vincentrolfs 156 Apr 28 14:05 config
-rw------- 1 vincentrolfs vincentrolfs 1766 Nov 28 05:16 id_rsa
-rw-r--r-- 1 vincentrolfs vincentrolfs 414 Nov 28 05:16 id_rsa.pub
-rw-r--r-- 1 vincentrolfs vincentrolfs 13706 Apr 28 13:40 known_hosts
为什么我的 ssh 密钥突然需要密码?我应该担心吗?
编辑:我昨天第一次使用备份服务 deja-dup,我相信这与此有关。