Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

X11 forwarding request failed on channel 0

Hi everyone,


I am trying to use the git remote functions. When I try to use the command:


git fetch --all


It reports me an error:

X11 forwarding request failed on channel 0


I have googled it and try to use the set up:

sudo /etc/ssh/ssh_config:

# ForwardAgent yes

# ForwardX11 yes

# ForwardX11Trusted yes


sudo /etc/ssh/sshd_config:

#X11Forwarding yes

#X11DisplayOffset 10

#X11UseLocalhost no


And use the XQuatz app to do the "git fetch --all", but all these tries fail. I still get the error when I run the code. I was wondering how can I fix this problem. Thanks in advance.


MacBook Pro 13″, macOS 10.15

Posted on May 30, 2021 3:10 AM

Reply

Similar questions

2 replies

X11 forwarding request failed on channel 0

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.