no ssh logins possible anymore! Maximum number of sessions

Aug 18 17:48:46 yourservername sshd[9846]: pam_systemd(sshd:session): Failed to create session: Maximum number of sessions (…sessions.

- see "man sshd_config" parameter MaxSessions:
Specifies the maximum number of open shell, login or subsystem (e.g. sftp) sessions permitted per network connection. Multiple
sessions may be established by clients that support connection multiplexing. Setting MaxSessions to 1 will effectively disable
session multiplexing, whereas setting it to 0 will prevent all shell, login and subsystem sessions while still permitting for?
warding. The default is 10.
>> default is 10

let it increase to 20:

file /etc/ssh/sshd_config:
new line with:
MaxSessions 20

and restart sshd: /etc/init.d/ssh restart

computer2know :: thank you for your visit :: have a nice day :: © 2023