Limit number of simultaneous sftp-server connections from same ip

Peter Stuge peter at stuge.se
Fri May 28 05:20:57 EST 2010


Lars Reimann wrote:
> I want to limit the number of connections (or instances) to an
> sftp-server a user can spawn from the same ip address.

Wouldn't a simple wrapper (as opposed to xinetd) work?


> sftp-server depends on a parent sshd

How is that, exactly?


> While limiting the use of sftp-server I want to retain _full_
> access to normal (shell-like) connections over sshd without limits.

Add the wrapper to the subsystem directive in sshd_config.


> By the way, how can I disable sftp-server completely

Remove the subsystem directive from sshd_config.


//Peter


More information about the openssh-unix-dev mailing list