moul/assh

Can support netcat mode?

tomohiro opened this issue · 3 comments

OpenSSH 5.4 has a "netcat mode". See OpenSSH/Cookbook/Proxies and Jump Hosts - Wikibooks, open books for an open world.

Example of netcat mode:

$ ssh -o ProxyCommand="ssh -W %h:%p jumphost.example.org" server.example.org
moul commented

Hi @tomohiro, thank you for this question,

Yes !

I just updated the README.md with a better explanation and new examples of Gateways usages (see ef6b2c8).


Let's consider this example

  tomohiro-a:
    HostName: 1.2.3.4

  tomohiro-b:
    HostName: 5.6.7.8
    Gateways:
      - tomohiro-a

ssh tomohiro-b is the equivalent of ssh -o ProxyCommand="ssh -W %h:%p tomohiro-a" 5.6.7.8

@moul Thank you for your reply and updated documentation. It's very useful 🙆‍♀️

However, if not install netcat command in the gateway server, SSH client's -W option is needed I think.
So I'm happy if you will consider to support netcat mode in the future 🙏

moul commented

Oh I see, yes definitely !
I will try to implement it in the next release, I will need to test it on non OpenSSH server (dropbear) and old ones to see if I still have a fallback solution :)

Thanks again!