Welcome! Log In Create A New Profile

Advanced

Re: ssh load-balancing

Maxim Dounin
July 31, 2015 01:54PM
Hello!

On Fri, Jul 31, 2015 at 05:05:22PM +0000, Jerry Wyman wrote:

> I’m new to nginx and am trying to load-balance ssh sessions to
> an autoscaling group of ECS instances in AWS.
>
> Having trouble getting my config files right. I don’t get any
> errors on startup, but my access.logs shows this lines for each
> attempt and the command line gives me this :
>
> ssh ec2-user@10.172.60.7
>
> ssh_exchange_identification: Connection closed by remote host
>
> Access.log:
>
> 10.172.200.18 - - [31/Jul/2015:15:54:15 +0000] "SSH-2.0-OpenSSH_6.2" 400 173 "-" "-" "-"
>
> 10.172.200.18 - - [31/Jul/2015:16:25:31 +0000] "SSH-2.0-OpenSSH_6.2" 400 173 "-" "-" "-"
>
> 10.172.200.18 - - [31/Jul/2015:16:34:31 +0000] "SSH-2.0-OpenSSH_6.2" 400 173 "-" "-" "-"
>
> Any direction would be appreciated.

Looks you are trying to balance ssh connections using http module.
This won't work, as http is only able to balance http requests,
not arbitrary connections.

If you want to balance ssh connections, try using the stream
module instead:

http://nginx.org/en/docs/stream/ngx_stream_core_module.html
https://www.nginx.com/resources/admin-guide/tcp-load-balancing/

The stream module is designed to balance arbitrary connections,
and should work for you.

> This communication is Confidential Information. By using this
> message and attachments you implicitly consent to terms and
> conditions set forth at http://www.taos.com/email_disclaimer. If
> you do not consent or received this message in error, please
> destroy it.

By posting to this list you've agreed that the message will be
publicly available. If you want your messages to be confidential,
please consider using commercial support, see
https://www.nginx.com/support/.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

ssh load-balancing

Jerry Wyman July 31, 2015 01:06PM

Re: ssh load-balancing

Maxim Dounin July 31, 2015 01:54PM

Re: ssh load-balancing

jerrywyman July 31, 2015 06:30PM

Re: ssh load-balancing

Maxim Konovalov July 31, 2015 03:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready