I was able to confirm this behavior is present on plucky, but not
oracular.
I created a new LXD container, and ran:
$ echo "PerSourceMaxStartups 3" >> /etc/ssh/sshd_config.d/per-source-
max-startups.conf
Then I added a key to authorized_keys etc, and then made 4 connection
attempts from my host to the container. On the 4th attempt, the
connection failed. In the container, I saw:
$ journalctl -u ssh -b
May 02 19:03:12 p systemd[1]: Starting ssh.service - OpenBSD Secure Shell
server...
May 02 19:03:12 p sshd[483]: Server listening on 0.0.0.0 port 22.
May 02 19:03:12 p sshd[483]: Server listening on :: port 22.
May 02 19:03:12 p systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
May 02 19:03:16 p sshd-session[504]: Accepted publickey for ubuntu from
10.19.111.1 port 50302 ssh2: RSA
SHA256:VMGz6tsZ02V9ratWlExePp9LaOe2qIr7SiWLHP2aGrM
May 02 19:03:16 p sshd-session[504]: pam_unix(sshd:session): session opened for
user ubuntu(uid=1000) by ubuntu(uid=0)
May 02 19:03:18 p sshd-session[589]: Accepted publickey for ubuntu from
10.19.111.1 port 48300 ssh2: RSA
SHA256:VMGz6tsZ02V9ratWlExePp9LaOe2qIr7SiWLHP2aGrM
May 02 19:03:18 p sshd-session[589]: pam_unix(sshd:session): session opened for
user ubuntu(uid=1000) by ubuntu(uid=0)
May 02 19:03:21 p sshd-session[649]: Accepted publickey for ubuntu from
10.19.111.1 port 48308 ssh2: RSA
SHA256:VMGz6tsZ02V9ratWlExePp9LaOe2qIr7SiWLHP2aGrM
May 02 19:03:21 p sshd-session[649]: pam_unix(sshd:session): session opened for
user ubuntu(uid=1000) by ubuntu(uid=0)
May 02 19:03:24 p sshd[483]: error: beginning MaxStartups throttling
May 02 19:03:24 p sshd[483]: drop connection #0 from [10.19.111.1]:48320 on
[10.19.111.16]:22 past Maxstartups
May 02 19:09:07 p sshd[483]: error: in MaxStartups throttling for 00:05:43, 3
connections dropped
May 02 19:09:07 p sshd[483]: drop connection #0 from [10.19.111.1]:39950 on
[10.19.111.16]:22 past Maxstartups
** Changed in: openssh (Ubuntu)
Status: New => Confirmed
** Changed in: openssh (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109831
Title:
PerSourceMaxStartups setting now preventing all ssh access
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2109831/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs