问题描述
我遵循github指南()到ssh代理转发。
$ ssh -T git @ github .com
尝试SSH到github
您好用户名!您已成功通过身份验证,但GitHub不提供
shell访问权限。
这个命令对local&服务器。但是,当我尝试在服务器上尝试使用git pull(或其他与github相关的命令)时,它仍然要求我输入登录名和密码。密码。
问题可能来自我在本地&服务器 ?或者我错过了其他的东西?
- local:ubuntu 11.10
- server:debian 6
-
SSH代理仅影响使用SSH传输的远程。
确保您的遥控器配置为 [email protected]:user / repo.git
,而不是 https:// github.com/user/repo.git
。
I followed the github guide (https://help.github.com/articles/using-ssh-agent-forwarding) to ssh agent forwarding.
$ ssh -T [email protected]
Attempt to SSH in to github
Hi username! You've successfully authenticated, but GitHub does not provide
shell access.
This command works on both local & server. But when I try a git pull (or other github related command), on the server, it still asks me for my login & password.
Is the problem could come from that I don't use the same username on local & the server ? Or did I miss something else ?
- local : ubuntu 11.10
- server : debian 6
SSH agents only affect remotes that use the SSH transport.
Make sure your remotes are configured as [email protected]:user/repo.git
, not https://github.com/user/repo.git
.
这篇关于SSH代理转发配置和(似乎是)工作,但github仍然要求用户&密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!