[CentOS 7] SSH 접속이 느린 이슈

어느날부터 SSH 접속이 느리다…

 

ssh -vvv username@host -p port

SSH 접속 중 어느 부분에서 막히는지 확인하기 위해 로그 확인

 

debug1: pledge: network

이 부분에서 멈춘 후 좀 기다리면 SSH 연결 된다.

구글링 고고

 

systemctl restart systemd-logind

이 링크를 참고하여 명령어를 실행한다.

서비스 재시작 실패 ㅜㅜ

 

journalctl -xe

위의 명령어로 실패 로그 확인

 

5월 03 11:34:11 nas sshd[6029]: pam_systemd(sshd:session): Failed to create session: Connection timed out
5월 03 11:34:11 nas sshd[6031]: pam_systemd(sshd:session): Failed to create session: Connection timed out
5월 03 11:34:23 nas dbus-daemon[957]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
5월 03 11:34:31 nas sshd[30059]: pam_unix(sshd:session): session closed for user root
5월 03 11:34:32 nas sshd[30062]: pam_unix(sshd:session): session closed for user root
5월 03 11:34:36 nas su[6103]: pam_systemd(su:session): Failed to create session: 연결 시간 초과
5월 03 11:34:45 nas systemd[1]: systemd-logind.service: Start operation timed out. Terminating.
5월 03 11:34:45 nas systemd[1]: systemd-logind.service: Failed with result 'timeout'.
5월 03 11:34:45 nas systemd[1]: Failed to start Login Service.
5월 03 11:34:46 nas systemd-logind[6707]: Watching system buttons on /dev/input/event1 (Power Button)
5월 03 11:34:46 nas systemd-logind[6707]: Watching system buttons on /dev/input/event0 (Power Button)
5월 03 11:34:48 nas dbus-daemon[957]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
5월 03 11:35:13 nas dbus-daemon[957]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
5월 03 11:35:38 nas dbus-daemon[957]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
5월 03 11:36:03 nas dbus-daemon[957]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
5월 03 11:36:15 nas systemd[1]: systemd-logind.service: Start operation timed out. Terminating.
5월 03 11:36:16 nas systemd[1]: systemd-logind.service: Failed with result 'timeout'.
5월 03 11:36:16 nas systemd[1]: Failed to start Login Service.

이번엔 org.freedesktop.systemd1 키워드로 구글링

 

systemctl daemon-reexec

이 링크를 참고하여 명령어를 실행한다.

SSH 접속이 느린 이슈 해결~