如何让 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
how to make windows remember my passphrase key?
提问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-add
to add you key once and remember it:
使用 openssh,您可以使用命令行程序ssh-add
添加一次密钥并记住它:
ssh-add /c/Users/.ssh/id_rsa
回答by jpjacobs
One of these questions surely contains valid answers: How to push with git to github on Windows?
这些问题之一肯定包含有效答案: How to push with git to github on Windows?
如何为我的密钥存储密码,以便在 Windows 上使用 git 时可以提交和从存储库中提取?
Or you could use putty like they do in this answer
或者你可以像他们在这个答案中那样使用腻子