Re: using ProxyCommand




Hello,
I can do

ssh -fN -L 9022:<remote-XServer>:22 <user>@<ssh-server>
ssh -XC -p 9022 localhost

to get a ssh connection with X-forwarding to the remote XServer tunneled
through <ssh-server>. I tried to get the same with

ssh -XC -p 9022 \
-oProxyCommand="ssh -L 9022:<remote-XServer>:22 <user>@<ssh-server>" \
localhost

but this fails. Where do i misunderstand the concept of ProxyCommand?

ssh -XC -oProxyCommand="ssh <user>@<ssh-server> nc %h %p" remote-XServer

There is no longer any need for the indirection of port forwarding. This
requires that you have something like nc (netcat) on ssh-server.

--
Richard Silverman
res@xxxxxxxx

.



Relevant Pages

  • Re: using ProxyCommand
    ... ssh -XC -p 9022 localhost ... to get a ssh connection with X-forwarding to the remote XServer tunneled ... Where do i misunderstand the concept of ProxyCommand? ... requires that you have something like nc on ssh-server. ...
    (comp.security.ssh)
  • using ProxyCommand
    ... ssh -XC -p 9022 localhost ... to get a ssh connection with X-forwarding to the remote XServer tunneled ... through <ssh-server>. ...
    (comp.security.ssh)