OpenSSH 代理是否将未加密的密钥或密码保存在内存中?

Does an OpenSSH agent keep the unencrypted key or the passphrase in memory?

只是为了明确和清楚。 OpenSSH 代理是将未加密的私钥保存在内存中,还是将密码短语保存在内存中,并在需要时解密密钥?我认为 this question, 9650410,间接地回答了我。 (未加密的私钥在内存中。)

我不是编码员,即使尝试也无法理解源代码。

我相信 ssh-agent 使用密码 once 来解密私钥,并且解密后的私钥保存在内存中。密码仅在最初使用。

参见:https://security.stackexchange.com/questions/39837/does-ssh-agent-store-the-ssh-key-passwords-in-cleartext-in-the-memory