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?