V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wzw
V2EX  ›  问与答

虚拟机里面安装的 debian 启动 ssh.service 居然要 42s, 为什么呀?

  •  1
     
  •   wzw · Nov 13, 2018 · 1221 views
    This topic created in 2722 days ago, the information mentioned may be changed or developed.
    systemd-analyze blame
    结果:


    大家帮忙查查原因?

    我找了好一会了

    `journalctl -u ssh -b`
    发现
    `Nov 13 11:16:26 d systemd[1]: Failed to start OpenBSD Secure Shell server.`

    第二次就成功了
    1 replies    2018-11-13 11:22:46 +08:00
    wzw
        1
    wzw  
    OP
       Nov 13, 2018
    已经无法编辑了

    Nov 13 11:14:56 d systemd[1]: Starting OpenBSD Secure Shell server...
    Nov 13 11:16:26 d systemd[1]: ssh.service: Start-pre operation timed out. Terminating.
    Nov 13 11:16:26 d systemd[1]: ssh.service: Failed with result 'timeout'.
    Nov 13 11:16:26 d systemd[1]: Failed to start OpenBSD Secure Shell server.
    Nov 13 11:16:26 d systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 13 11:16:26 d systemd[1]: ssh.service: Scheduled restart job, restart counter is at 1.
    Nov 13 11:16:26 d systemd[1]: Stopped OpenBSD Secure Shell server.
    Nov 13 11:16:26 d systemd[1]: Starting OpenBSD Secure Shell server...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5601 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:29 · PVG 09:29 · LAX 18:29 · JFK 21:29
    ♥ Do have faith in what you're doing.