How to ssh to a server via an intermediate server with X11 forwarding?
Damien Miller
djm at mindrot.org
Sat Jul 18 18:18:26 AEST 2015
On Fri, 17 Jul 2015, Peng Yu wrote:
> On Sun, Jul 5, 2015 at 3:26 AM, Damien Miller <djm at mindrot.org> wrote:
> > On Sat, 4 Jul 2015, Peng Yu wrote:
> >
> >> I tried the following command.
> >>
> >> ssh -Y -t intermediate -- ssh -Y dest
> >>
> >> But it shows the following error message. Does anybody know how to fix
> >> the problem? Thanks.
> >
> > ssh -oProxyCommand="ssh -W %h:%p intermediate" -Y dest
> >
> > should work
>
> Somehow, the above command works in some cases but not others (I still
> see "X11 forwarding request failed on channel 0"). Do you know how to
> debug for the cases that do not work? Thanks.
Add some -d options to one/both ssh commands.
-d
More information about the openssh-unix-dev
mailing list