如何让 Windows 记住我的密码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8518515/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:40:05  来源:igfitidea点击:

how to make windows remember my passphrase key?

windowsgitsshgithub

提问by holygeek

I'm new to using git. Each time I want to push my file to github, it's always show me notification to enter my passphrase. Ex: Enter passphrase for key '/c/Users/.ssh/id_rsa':

我是使用 git 的新手。每次我想将我的文件推送到 github 时,它总是向我显示输入密码的通知。例如:输入密钥“/c/Users/.ssh/id_rsa”的密码:

I want my git remember the passphrase for me. How should I possibly do that on windows 7? I've already read the help page here http://help.github.com/ssh-key-passphrases/. It seems only available for Mac / Linux.

我希望我的 git 记住我的密码。我应该如何在 Windows 7 上做到这一点?我已经在这里阅读了帮助页面http://help.github.com/ssh-key-passphrases/。它似乎仅适用于 Mac / Linux。

Thanks for helping.

谢谢你的帮助。

回答by holygeek

I believe if you use msysgit then you can install (or maybe it comes already installed) openssh.

我相信如果你使用 msysgit 那么你可以安装(或者它已经安装了)openssh。

With openssh you can use the command line program ssh-addto add you key once and remember it:

使用 openssh,您可以使用命令行程序ssh-add添加一次密钥并记住它:

ssh-add /c/Users/.ssh/id_rsa