Questions tagged «encfs»

1
仅使用ssh-agent中的私钥,避免“身份验证失败太多”
我将所有加密的私钥存储在encfs文件中。我将encfs文件挂载(解密)到文件夹,将所有私钥添加到带有生存标志和卸载文件夹的ssh-agent。在这种情况下,我的私钥文件保持加密,我可以通过ssh-agent访问它们。 我的密钥列表变得越来越大,我开始收到“%username%的身份验证失败太多”我搜索了解决方法,常见的建议是在〜/ .ssh / config中指定每个IdentityFile Host hostalias Hostname my.host.name User username IdentityFile ~/.ssh/unencrypted_key 但在这种情况下,我的密钥应始终以未加密的状态存储,因为ssh将直接访问它们(忽略ssh-agent)。 是否有任何可能的解决方案来指定应该使用哪个主机的私有ssh-key(来自ssh-agent)? PS每个键都有自己的指纹,我认为这可以通过在配置中指定它来解决(类似这样): Host hostalias Hostname my.host.name User username IdentityFingerPrint 0c:d6:e6:64:0f:b5:1f:29:11:51:12:74:90:55:49:ae 但我没有找到类似的东西。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.