如何在不重新输入SSH密码的情况下执行`git pull`? [英] How can I perform a `git pull` without re-entering my SSH password?

查看:110
本文介绍了如何在不重新输入SSH密码的情况下执行`git pull`?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以配置 git / ssh ,所以我不必每次输入密码时都要执行 git pull ?请注意,repo在github上是私有的。



或者,从私有Github repo自动执行代码部署的最佳做法是什么?



其他详细信息:运行基于Fedora的公共AMI的EC2实例。 / div>

查看此链接 https:// help.github.com/articles/working-with-ssh-key-passphrases/


但我不每次使用密钥都不想输入长密码!



我也没有!值得庆幸的是,有一个名为
ssh-agent 的漂亮小工具,可以安全地保存您的密码,因此您不需要
就可以重新输入密码。如果您使用OSX Leopard或更高版本,您的钥匙可以在系统钥匙链中保存
,使您的生活更轻松。当
登录时,大多数
linux安装程序会自动为您启动ssh-agent。



Is it possible to configure git/ssh so I don't have to enter my passphrase every time I want to perform a git pull? Note that the repo is a private one on github.

Or, alternatively, what would be the best practice to automate code deployment from a private Github repo?

Additional details: EC2 instance running a public AMI based on Fedora.

解决方案

Have a look at this link https://help.github.com/articles/working-with-ssh-key-passphrases/

But I don’t want to enter a long passphrase every time I use the key!

Neither do I! Thankfully, there’s a nifty little tool called ssh-agent that can save your passphrase securely so you don’t have to re-enter it. If you’re on OSX Leopard or later your keys can be saved in the system’s keychain to make your life even easier. Most linux installations will automatically start ssh-agent for you when you log in.

这篇关于如何在不重新输入SSH密码的情况下执行`git pull`?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆