English 中文(简体)
GIT推动对未信任的X11号发射装置的鞭 whi
原标题:GIT push whines about untrusted X11 forwarding setup failed
  • 时间:2011-06-11 16:05:22
  •  标签:
  • git
  • macos
  • x11

I m New to both git and OSX, from Hugo and svn.

当我从SOSX终端机车上“推车”时,我收到以下警告:

folklore$ git push origin master
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
Counting objects: 7, done.

看来,这只是一种警告。 但我原谅。 为什么有X11在座?

我检查了我的<代码>ssh/。 钥匙是正确的600。

我猜测,我只能无视警告,但我只是清理了。 或许可以学习一个轨道。

最佳回答

This is an ssh issue, not a git issue. What you are seeing is not a git whine, it s a valid warning from your ssh client. You should ensure that your ssh config doesn t attempt X11 forwarding by default (git doesn t need it), or at least turn it off for the host you are connecting to.

在<代码>~/ssh/config 审判:

ForwardX11 no

无论是在东道国的具体部门还是在全球范围。

问题回答

If you want to get rid of this message for github (as deduced from your comments), your ~/.ssh/config should contain:

Host *github.com
   ForwardX11 no

As the value after Host needs to be a pattern to match the hostname given to ssh. (You could e.g. also use Host *github.* ).

当然,其他要素(HostName,User, 等)也可添加到本东道方。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签