sshd: pam_systemd(sshd:session): Failed to create session: Connection timed out
1. You have to reload the system login based daemon
# systemctl daemon-reload
2. Check the health status of the inter-process communication daemon
# systemctl status dbus.service
# systemctl status polkit.service
3. If the dbus and polkit service is not running then you will start the first polkit service then we will start the dbus service. Please make sure this will start in the same order.
# systemctl start polkit.service
# systemctl start dbus.service
4. In the last step we have to restart the systemd-logind service
# systemctl restart systemd-logind
That’s it, now you have successfully fixed the issue. This is in the case when you have sufficient space in the root partition and load if optimal. If you have both issues then you have to fix them first.
Now you have added one more troubleshoot option in your skill.
Share the article if it helps you !!!