LoginSignup
6
4

More than 3 years have passed since last update.

ssh、slogin、su が遅くなった場合の対応の一つ

Posted at

状況

  • ubuntu 16.04 から 18.04 に upgrade した後に発生
  • slogin でのログイン、及び、su で root になる場合に時間がかかる
  • /var/log/auth.log には、以下のようなエラー
Oct  9 19:55:38 XXXXX sshd[4982]: pam_systemd(sshd:session): Failed to create session: Connection timed out
  • このメッセージで web を探すと見つかる、以下の対処方法が効かない
systemctl restart systemd-logind

有効な対処法

  • しばらく探し続けて見つけた、 https://www.ogre.com/node/518 の対応が有効だった。すなわち、

    • /etc/pam.d/common-session
    • /etc/pam.d/runuser-l
    • /etc/pam.d/systemd-user

の3つのファイル中にある、文字列 "pam_systemd.so" を含む行の先頭に "#" マークをつけて、コメントアウトする

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4