Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
392 views
in Technique[技术] by (71.8m points)

macos - GIT push whines about untrusted X11 forwarding setup failed

I'm new to both git and OSX, coming from Ubuntu and svn.

When I do a "git push" from the OSX terminal shell, I get the following warning:

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.

It seems to be working fine, its just a warning. But I dont' understand it. Why is there any X11 in play here?

I've checked my .ssh/ keys and they are properly 600.

I guess I could just keep ignoring the warning, but I'd rather clean it up. And perhaps learn a bit.

question from:https://stackoverflow.com/questions/6316978/git-push-whines-about-untrusted-x11-forwarding-setup-failed

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

In your ~/.ssh/config try:

ForwardX11 no

either in the host specific section or globally.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...