For OpenSSH clients, X forwarding may be configured for all connection to any SSH server, as follows, in ~/.ssh/config
:
ForwardX11 yes
Some servers are not configured for support of X forwarding, leading to the following warning:
X11 forwarding request failed
How may the warning be disabled through client configuration?
Note that the objective is not to allow X forwarding to the target server, which would of course carry the effect of removing the warning. The objective is simply to remove the warning. for any server, in spite of such a failure, such as not to clutter console output.
ssh -q
suppresses most warnings, but at the moment I cannot test it against the warning you're asking about.rsync
. Of course, even if it worked, it would also suppress more than just the target warning.-q
does suppressX11 forwarding request failed on channel …
. (2) There isrsync -e
, e.g.rsync -e 'ssh -q' …
. Alternatively (and more universally) you can putLogLevel QUIET
orLogLevel FATAL
inssh_config
. (3) "… more than just the target warning" – True, therefore I asked you if you want to disable this specific warning only. You have not addressed this clearly.