Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17784

Openssh server: fatal: Too many listen sockets. Enlarge MAX_LISTEN_SOCKS

$
0
0

I am using Ubuntu 14.04 LTS. I want to create an Openssh server, which listens on many ports (at least 100 different ports). Multiple clients would connect to this server, but each client would need to have its own dedicated port. Clients would create reverse ssh tunnels to this host on-demand, and maximum number of concurrent clients would be max. 10 at a time.

When configuring 16 or more ports, Openssh server fails to start, fails with error: fatal: Too many listen sockets. Enlarge MAX_LISTEN_SOCKS

MAX_LISTEN_SOCKS is defined in sshd.c file. Is there a way to enlarge MAX_LISTEN_SOCKS, without having to recompile and reinstall Openssh server from source? Alternative: is there a different/better way to resolve this?

submitted by igyori
[link][8 comments]

Viewing all articles
Browse latest Browse all 17784

Trending Articles