nginx + sni + ssh connection
Sergey A. Osokin
osa at freebsd.org.ru
Tue Jul 26 15:08:07 UTC 2022
Hi Caio Abreu Ferreira,
hope you're doing well.
On Tue, Jul 26, 2022 at 11:41:52AM -0300, Caio Abreu Ferreira via nginx wrote:
> List
>
> I'm trying to do something like this
>
> mt4.senhasegura.local ─┬─► nginx at 192.168.122.10 ─┬─► mt4 at 192.168.122.11
> xpto.senhasegura.local ─┘ ─►
> xpto at 192.168.122.12
>
> I already got it with the HTTP, HTTPS, and RDP protocols, but I'm not
> getting it with the ssh protocol. with only one ssh server, I was able to
> configure it. The problem is occurring with multiple ssh servers. I found
> several docs on the internet but all docs were about one ssh server and
> multiple HTTPS servers. I have multiple ssh servers and multiple HTTPS servers.
> Is it possible to do an SSH connection redirection?
So, it's possible to use stream module [1] to proxy SSH connections. Also,
the SSH settings on backends, including SSH keys, should be the same.
If all of those above are correct, then what's the issue?
References:
1. https://nginx.org/en/docs/stream/ngx_stream_core_module.html
--
Sergey A. Osokin
More information about the nginx
mailing list