kmdd33
V2EX  ›  问与答

ssh 今天又无法登录了, timeout,上次执行了重启 sshd,就可以登录,这次重启 sshd 无效了,只能用 console 现在,怎么办?请教老同学。

  •  
  •   kmdd33 · Nov 10, 2017 · 2372 views
    This topic created in 3107 days ago, the information mentioned may be changed or developed.
    上次执行的命令:systemctl restart sshd.service 重启 sshd 服务。
    systemctl enable sshd.service 设置服务开机自启


    这次输入这 2 个命令无效果了,附带 htop 截图:
    1 replies    2017-11-10 09:12:04 +08:00
    snriud
        1
    snriud  
       Nov 10, 2017
    是不是更改 sshd 配置了?
    systemctl status sshd 看一下服务有没有启动,如果没有启动,看看是哪里报错了。

    timeout 很大的可能性是服务没有启动。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5774 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 06:37 · PVG 14:37 · LAX 23:37 · JFK 02:37
    ♥ Do have faith in what you're doing.