Examples of ProxyCommand?




As a test to find some examples of using ProxyCommand, I tried

ProxyCommand nc %h %p

that seemed to make no change I could see..

I have 3 computers with ssh servers on them and i'm trying to do some example
ProxyCommand lines so I can see what they do.

The only one i've got to work is ProxyCommand nc %h %p and I can't see
it doing anything.

And others i've tried aren't working.

One site said

ProxyCommand ssh user@intermediatehost nc %h %p

and to ssh to internalhost and it'd go through that.

But when I tried it just hung.

I did Ctrl-C and it said

ssh_exchange_identification: Connection closed by remote host







.



Relevant Pages

  • Re: Examples of ProxyCommand?
    ... have to connect to a host which is not directly reachable. ... So lets assume, you have a client computer C, with ssh installed. ... man 5 ssh_config (look for ProxyCommand) ... $ channel 2: open failed: connect failed: Operation not permitted ...
    (comp.security.ssh)
  • Re: ssh to a remote server via gateway server
    ... uses proxycommand, it uses "nc host 22" to do the ... final connection to the target ssh daemon (on labpc in your case). ... Host labpc ...
    (Fedora)
  • Re: Examples of ProxyCommand?
    ... have to connect to a host which is not directly reachable. ... So lets assume, you have a client computer C, with ssh installed. ... This gives you a connection from C to H, and you can setup a tunnel: ... man 5 ssh_config (look for ProxyCommand) ...
    (comp.security.ssh)
  • Configuration dependent on local hostname?
    ... ProxyCommand none ... This works fine while being outside of the NATted network. ... LocalHost * ... opensus-11.1 $ ssh -V ...
    (SSH)