【发布时间】:2013-01-23 14:19:41
【问题描述】:
我生成了一个没有密码的 SSH 密钥对,并将公钥添加到 GitHub。
连接
user@dev:/var/www/project# ssh -T git@github.com
Hi User! You've successfully authenticated, but GitHub does not provide shell access.
成功了,当我重命名密钥时,它失败了。
但是当我想要推送我的更改时,它仍然会询问我的用户名和密码组合。
有没有不用密码的推送方式?
【问题讨论】:
-
确保您没有在遥控器中使用
https://github...。他们还应该遵循git@github...格式。 -
about-remote-repositories 两种类型: 1. HPPT like
https://github.com/user/repo.git2. SSH, likegit@github.com:user/repo.git