pam_limits only checks the contents of utmp to count logins, it doesn't write login entries to the file. If openssh is failing to clean up its login records, that's an openssh issue.
** Package changed: pam (Ubuntu) => openssh (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in Ubuntu. https://bugs.launchpad.net/bugs/977313 Title: Too many logins - sessions not cleared To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/977313/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs