Welcome! Log In Create A New Profile

Advanced

Re: nginx + sni + ssh connection

Sergey A. Osokin
July 26, 2022 11:10AM
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
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

nginx + sni + ssh connection

Caio Abreu Ferreira via nginx July 26, 2022 10:42AM

Re: nginx + sni + ssh connection

Sergey A. Osokin July 26, 2022 11:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 51
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready