summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2008-05-08 12:21:16 +0000
committerdjm <djm@openbsd.org>2008-05-08 12:21:16 +0000
commit6d13e39a83239a3d221c04849265187bc1d3ee74 (patch)
tree3678b7f2dc35f8a9df3ee0b00a5f30a8feb0d4b2 /usr.bin/ssh/ssh.c
parentImplement a channel success/failure status confirmation callback (diff)
downloadwireguard-openbsd-6d13e39a83239a3d221c04849265187bc1d3ee74.tar.xz
wireguard-openbsd-6d13e39a83239a3d221c04849265187bc1d3ee74.zip
Make the maximum number of sessions run-time controllable via
a sshd_config MaxSessions knob. This is useful for disabling login/shell/subsystem access while leaving port-forwarding working (MaxSessions 0), disabling connection multiplexing (MaxSessions 1) or simply increasing the number of allows multiplexed sessions. Because some bozos are sure to configure MaxSessions in excess of the number of available file descriptors in sshd (which, at peak, might be as many as 9*MaxSessions), audit sshd to ensure that it doesn't leak fds on error paths, and make it fail gracefully on out-of-fd conditions - sending channel errors instead of than exiting with fatal(). bz#1090; MaxSessions config bits and manpage from junyer AT gmail.com ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
0 files changed, 0 insertions, 0 deletions