SSH代理转发配置和(似乎是)工作,但github仍然要求用户&密码 [英] SSH agent forwarding configured and (seems to be) working but github still asks for user & password

查看:157
本文介绍了SSH代理转发配置和(似乎是)工作,但github仍然要求用户&密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循github指南( https://help.github.com/文章/ using-ssh-agent-forwarding )到ssh代理转发。

  $ ssh -T git @ github .com 
尝试SSH到github
您好用户名!您已成功通过身份验证,但GitHub不提供
shell访问权限。

这个命令对local&服务器。但是,当我尝试在服务器上尝试使用git pull(或其他与github相关的命令)时,它仍然要求我输入登录名和密码。密码。



问题可能来自我在本地&服务器 ?或者我错过了其他的东西?




  • local:ubuntu 11.10

  • server:debian 6


解决方案

SSH代理仅影响使用SSH传输的远程。

确保您的遥控器配置为 git@github.com: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 git@github.com
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 git@github.com:user/repo.git, not https://github.com/user/repo.git.

这篇关于SSH代理转发配置和(似乎是)工作,但github仍然要求用户&密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆