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!