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

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

  •  
  •   kmdd33 · Nov 10, 2017 · 2357 views
    This topic created in 3101 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   ·   3985 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:22 · PVG 18:22 · LAX 03:22 · JFK 06:22
    ♥ Do have faith in what you're doing.