SSH代理转发已配置且(似乎)正在工作,但github仍要求用户&;密码
我按照github指南()进行ssh代理转发SSH代理转发已配置且(似乎)正在工作,但github仍要求用户&;密码,git,github,ssh,Git,Github,Ssh,我按照github指南()进行ssh代理转发 $ ssh -T git@github.com Attempt to SSH in to github Hi username! You've successfully authenticated, but GitHub does not provide shell access. 此命令适用于本地和服务器。但是,当我在服务器上尝试git pull(或其他与github相关的命令)时,它仍然要求我输入登录名和密码 问题可能是因为我在本地服务器上没有
$ ssh -T git@github.com
Attempt to SSH in to github
Hi username! You've successfully authenticated, but GitHub does not provide
shell access.
此命令适用于本地和服务器。但是,当我在服务器上尝试git pull(或其他与github相关的命令)时,它仍然要求我输入登录名和密码
问题可能是因为我在本地服务器上没有使用相同的用户名?还是我错过了什么
- 本地:ubuntu 11.10
- 服务器:Debian6
确保您的遥控器配置为
git@github.com:user/repo.git
,而不是https://github.com/user/repo.git
您的遥控器是否使用git@github.com...
或使用https://...
?SSH代理转发只影响前者。Thx@Chris!这就是问题所在(git@github.com在本地,在服务器上使用https)。你想写答案还是我应该写?我已经添加了这个作为答案。很高兴它对你有用。