Restrict SSH connections

Philipp Marek philipp at marek.priv.at
Wed Feb 26 19:01:59 AEDT 2020


> To limit amount of shells, you can use pam_limits [1], but it does not
> catch non-shell connections such as sftp, port forwarding, jumps to
> other servers and so on. For that, you need to use something home-
> cooked or some non-standard tool.

You could also use ulimit to restrict the total number of user
processes, if that works for your use-case.


More information about the openssh-unix-dev mailing list