I have a host which I want to access through reverse ssh and I also want to forward X11.
So I did this on the remote host:
ssh -X -R 43022:localhost:22 usr@myhost -p 2222
and I can connect fine with ssh -X -p 43022 usr@localhost from myhost but the X11 forwarding doesn't seem to work:
$ xeyes
Error: Can't open display:
why is that?
X11Forwardingenabled in myhost'ssshd_config?ssh -X; you don't need it in the first one).X11Forwardingis probably disabled on your other host, the one that runsxeyes. Don't you have a "X11 forwarding request failed" error message?