Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can support netcat mode? #146

Closed
tomohiro opened this issue May 2, 2016 · 3 comments
Closed

Can support netcat mode? #146

tomohiro opened this issue May 2, 2016 · 3 comments
Assignees
Milestone

Comments

@tomohiro
Copy link

tomohiro commented May 2, 2016

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 added a commit that referenced this issue May 2, 2016
@moul
Copy link
Owner

moul commented May 2, 2016

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 moul added this to the v2.4.0 milestone May 2, 2016
@moul moul added the Question label May 2, 2016
@moul moul self-assigned this May 2, 2016
@moul moul removed the Question label May 2, 2016
@tomohiro
Copy link
Author

tomohiro commented May 2, 2016

@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
Copy link
Owner

moul commented May 2, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants