Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SSH代理转发已配置且(似乎)正在工作,但github仍要求用户&;密码_Git_Github_Ssh - Fatal编程技术网

SSH代理转发已配置且(似乎)正在工作,但github仍要求用户&;密码

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相关的命令)时,它仍然要求我输入登录名和密码 问题可能是因为我在本地服务器上没有

我按照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相关的命令)时,它仍然要求我输入登录名和密码

问题可能是因为我在本地服务器上没有使用相同的用户名?还是我错过了什么

  • 本地:ubuntu 11.10
  • 服务器:Debian6

SSH代理只影响使用SSH传输的远程设备


确保您的遥控器配置为
git@github.com:user/repo.git
,而不是
https://github.com/user/repo.git

您的遥控器是否使用
git@github.com...
或使用
https://...
?SSH代理转发只影响前者。Thx@Chris!这就是问题所在(git@github.com在本地,在服务器上使用https)。你想写答案还是我应该写?我已经添加了这个作为答案。很高兴它对你有用。