«

»

Print this Post

X11 forwarding request failed on channel 0 mac

attempting to remedy my X11 forwarding request failed on channel 0 mac errorĀ I came across a great article on X11 forwarding on OS X

unfortunately when i tried to connect to my server, i still received the following error on my mac

X11 forwarding request failed on channel 0

best thing to do is use the -v command when you try to connect to your server.

ssh -X -v username@remote.server.name

it’ll give you hints as to why you’re still getting this error. what i got was:

debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Remote: No xauth program; cannot forward with spoofing.
X11 forwarding request failed on channel 0

note the “Remote: No auth program” line.

all i had to do after that was install xauth on my remote server and it was all good. booyah!

 

About devnumbertwo

IT consultant, software developer, technical writer, nba basketball spectator, tea (and occasionally coffee) drinker, cheese enthusiast, dog lover, and a person who once spotted heather locklear at the mall. chiggity check me out on twitter and
X11 forwarding request failed on channel 0 mac was last modified: June 16th, 2014 by devnumbertwo

Permanent link to this article: http://devnumbertwo.com/x11-forwarding-request-failed-on-channel-0-mac/