如何避免每次都输入ssh密钥的密码,在Linux和Windows上使用OpenSSH?[关闭] | 您所在的位置:网站首页 › steamcsgo密钥在哪里 › 如何避免每次都输入ssh密钥的密码,在Linux和Windows上使用OpenSSH?[关闭] |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
这个问题似乎不是关于一个特定的编程问题,一个软件算法,或主要由程序员使用的软件工具. If you believe the question would be on-topic on 另一个Stack Exchange网站,你可以留下评论,说明问题可能在哪里能够得到解答。 Closed 12个月前. Improve this question我使用一个受密码保护的ssh密钥(RSA)。这意味着我在使用钥匙之前需要输入密码来破译它。 我注意到,在一些电脑上,每次需要使用ssh密钥时,我都不需要输入该密钥的密码。 在我的Windows电脑上,以及一些Linux服务器上,我需要这样做。 我在Windows上使用OpenSSH(不是Putty),所以它的密钥与Linux相同。存放在/.shh目录下。 有一把受密码保护的钥匙是好事,以防有人偷窃。但每次都要输入密码是很烦人的。 有没有办法让我在Windows和Linux上的电脑记住它? 我从外壳(默认的Ubuntu终端和PowerShell,经常从VS Code)使用它。 谢谢 I tried this, but no success: (base) PS C:\code> ssh-add -k C:\Users\user\.ssh\id_rsa Enter passphrase for C:\Users\user\.ssh\id_rsa: Identity added: C:\Users\user\.ssh\id_rsa (C:\Users\user\.ssh\id_rsa) (base) PS C:\code> git fetch Enter passphrase for key '/c/Users/user/.ssh/id_rsa': 🤬🤯🥴 |
CopyRight 2018-2019 实验室设备网 版权所有 |