Gautier / bitbucket-sync

bitbucket-sync synchronize locally all the repositories of a bitbucket account
MIT License
12 stars 6 forks source link

Repeated messages "X11 forwarding request failed" on output (problem of ssh config) #5

Closed vlcinsky closed 10 years ago

vlcinsky commented 10 years ago

When using the command, I got many lines on output stating:

X11 forwarding request failed
X11 forwarding request failed
X11 forwarding request failed
X11 forwarding request failed

Initially they were in groups of 4, later on they got scattered in smaller groups.

This was spoiling output of the command and made more difficult to estimate, if all syncing went correctly or there was a problem.

Happened on Ubuntu 13.10 64 bits, python 2.7

vlcinsky commented 10 years ago

Problem resolved.

It was caused by my ssh configuration, where my ~/.ssh/config file had a line in the beginning:

ForwardX11 yes

This was instructing my ssh to attempt X11 forwarding with any remote server I was communicating.

As bitbucket probably is not providing X11 service, ssh was naturally unable to do any forwarding.

My solution was to set this option globally off

ForwardX11 no

Since then, the problem is gone.

(note: my notebook has 4 cores so there were by default 4 processes trying to do syncing - that is why there were chunks of 4 lines stating the same problem, later on got all the processes out of sync and complained in less dependent way).