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

标签 linux git ssh github

是否可以配置 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)

git - 防止其他人强制推送到我的 Git 存储库

android - 如何通过 Android Studio 在我的树莓派上使用本地 Git 服务器?

Git 远程 : Error: fatal: protocol error: bad line length character: Unab

ruby - Rails 控制台无法在服务器上运行

linux - (rsyslog) 过滤设施?

linux 通配库?

linux - LPC17xx 作为带有 PXA168 的 CDC 设备

git - Venv、Pycharm、GIT 和 Github

php - ssh2_exec : wait end of a process to run next