How to ssh to a server via an intermediate server with X11 forwarding?

Damien Miller djm at mindrot.org
Sun Jul 5 18:26:36 AEST 2015


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

-d


More information about the openssh-unix-dev mailing list