我刚刚将 macOS 升级到 Catalina 10.15.5,使用 krypton 的 ssh 已停止工作。首先我收到一个错误Enter PIN for 'Kryptonite iOS':
,我PKCS11Provider /usr/local/lib/kr-pkcs11.so
通过从 .ssh/config 中删除行解决了该问题,如中所述https://github.com/kryptco/kr/issues/301
然而,这样做之后,似乎从未尝试过从 iPhone 获取确认。
我明白了:
ssh [email protected]
no such identity: /Users/username/.ssh/id_krypton: No such file or directory
no such identity: /Users/username/.ssh/id_ed25519: No such file or directory
no such identity: /Users/username/.ssh/id_ecdsa: No such file or directory
no such identity: /Users/username/.ssh/id_dsa: No such file or directory
[email protected]: Permission denied (publickey).
我的配置文件是:
# Added by Krypton
Host *
ProxyCommand /usr/local/bin/krssh %h %p
IdentityFile ~/.ssh/id_krypton
IdentityFile ~/.ssh/id_ed25519
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_ecdsa
IdentityFile ~/.ssh/id_dsa
在更新到 Catalina 10.15.5 之前我能够连接,服务器端没有变化。
我尝试重新安装 kr 并取消配对并重新配对设备,但这些都无法解决问题。
答案1
解决方法是添加以下行
IdentityAgent ~/.kr/krd-agent.sock
到 .ssh/config 文件,如 lumaxis 所述https://github.com/kryptco/kr/issues/307