登录需要很长时间

登录需要很长时间

我正在使用 Debian 和 Gnome 进行测试。由于某种原因,在我输入密码并按 Enter 键后,大约需要三分钟才能登录。原因可能是什么?我很想提供更多细节,但我不知道从哪里开始。

一经请求:

$ cat /etc/hosts
127.0.0.1   localhost
127.0.1.1   klutt-desktop.klutt klutt-desktop

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

按需2:

$ systemd-analyze blame | head -n3
    1min 25.769s ssh.service
          6.764s NetworkManager-wait-online.service
           612ms udisks2.service

好像是ssh。检查日志tcl

$ sudo journalctl | grep ssh
Dec 17 10:09:53 klutt-desktop systemd[828]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Dec 17 10:10:03 klutt-desktop systemd[1126]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Dec 17 10:11:22 klutt-desktop systemd[1]: ssh.service: Start-pre operation timed out. Terminating.
Dec 17 10:11:22 klutt-desktop systemd[1]: ssh.service: Failed with result 'timeout'.
Dec 17 10:11:22 klutt-desktop systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
Dec 17 10:11:22 klutt-desktop systemd[1]: ssh.service: Scheduled restart job, restart counter is at 1.
Dec 17 10:12:48 klutt-desktop sshd[1151]: Server listening on 0.0.0.0 port 22.
Dec 17 10:12:48 klutt-desktop sshd[1151]: Server listening on :: port 22.
Dec 17 10:12:50 klutt-desktop gnome-keyring-ssh.desktop[1232]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh

在我运行之后,后来重新启动的journalctl中的一段systemctl disable ssh.service

Dec 17 11:12:37 klutt-desktop systemd[1]: Startup finished in 3.587s (kernel) + 13.916s (userspace) = 17.504s.
Dec 17 11:12:56 klutt-desktop systemd-timesyncd[696]: Synchronized to time server 79.136.86.176:123 (2.debian.pool.
Dec 17 11:12:57 klutt-desktop dbus-daemon[740]: [system] Failed to activate service 'org.bluez': timed out (service
Dec 17 11:12:57 klutt-desktop pulseaudio[874]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freed
Dec 17 11:13:33 klutt-desktop geoclue[923]: Service not used for 60 seconds. Shutting down..
Dec 17 11:13:34 klutt-desktop realmd[1043]: quitting realmd service after timeout
Dec 17 11:13:34 klutt-desktop realmd[1043]: stopping service
Dec 17 11:15:17 klutt-desktop kernel: random: crng init done

geoclue和realmd似乎是候选者。

相关内容