linux - 如何在不重新输入 SSH 密码的情况下执行 `git pull`?

是否可以配置 git/ssh,这样我每次想要执行 git pull 时都不必输入密码?请注意,该仓库是 github 上的私有(private)仓库。

或者,从私有(private) Github 存储库自动化代码部署的最佳做法是什么?

其他详细信息: EC2 实例运行基于 Fedora 的公共(public) AMI。

最佳答案

看看这个链接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.

关于linux - 如何在不重新输入 SSH 密码的情况下执行 `git pull`?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6265595/

相关文章:

linux - 选择 Linux I/O 调度程序

python - numpy.where() 详细的分步说明/示例

linux - 什么包包括 AB Ubuntu 中的 Apache 服务器基准测试工具

python - 如何在不导入的情况下检查 Python 模块是否存在

python - ConfigParser 中的列表

python - bs4.FeatureNotFound : Couldn't find a tre

ruby - 找不到 gem 命令

python - 未找到 Virtualenv 命令

android - adb 不显示 nexus 5 设备

python - 使用Python在SQLite中插入行后如何检索插入的ID?