容器內升級 Debian 11 後 SSH 登入變慢
於記錄 /var/log/auth.log 裡找到類似以下記錄的場合:
Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
是因為 systemd-logind 無法啟動所致,可以將該服務從驗證流程中移除來解決
systemctl mask systemd-logind
pam-auth-update # 把 "Register user sessions in the systemd control group hierarchy" 的勾拿掉
Leave a Comment