pam_systemd(sshd:session): Failed to create session: Failed to activate service ‘org.freedesktop.login1’: timed out
April 16, 2019 1 Comment
Problem:
1. Slow ssh connections
2. System seems slow when trying to su to another user
/var/log/secure contains the following errors:
pam_systemd(sshd:session): Failed to create session: Failed to activate
service 'org.freedesktop.login1': timed out
Solution:
1. Restart systemd-logind service
# systemctl restart systemd-logind
2. Restart server
# reboot
Note that the mentioned solutions are considered as temporary solutions (Frankly, I’ve never seen this error after restart. The problem happened with our two customers, who changed sshd_config file and did “something” after that, so the problem was caused by humman error in my all cases), for more information about this problem please see article at redhat site
https://access.redhat.com/discussions/3536621 .
Pingback: pam_systemd(sshd:session): Failed to create session: Failed to activate service ‘org.freedesktop.login1’: timed out