我有一个用 Kleopatra 生成的密钥对(来自 Gpg4win 3.0 套件)。我已将公钥转换为 RSA ssh 密钥,并将其添加到 Linux 机器中的 authorized_keys 文件中。
在 Windows 机器上,我将gpg-agent.conf文件配置为:
enable-putty-support
debug-level guru
log-file C:/Users/myusername/log.txt
disable-scdaemon
Run Code Online (Sandbox Code Playgroud)
但是,当我打开 PuTTY 并尝试连接到服务器时,出现错误:
"Disconnected: No supported authentication methods available (server sent: publickey)"
Run Code Online (Sandbox Code Playgroud)
问题是:如何使用 Windows 机器上的 Putty 使用 gpg 密钥对通过 SSH 连接到 Linux 机器?我知道 gpg-agent 模拟Pageant代理,因此它应该使用内存上的 gpg 私钥将加密的字符串提供给 PuTTY。这是正确的吗?还是我误解了这里的一切?