search

Home  >  Q&A  >  body text

ubuntu12.04 ssh 服务器之后,一段时间没操作之后 终端僵死

ubuntu12.04 ssh服务器之后,一段时间之后 终端僵死,不能做操作,好像有一个快捷键是可以

退出当前的僵死状态的,或者有什么别的方法可以退出僵死状态呢,

有人知道么 ?

天蓬老师天蓬老师2849 days ago533

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-21 10:58:55

    Disconnect the ssh connection under the default configuration and press the three keys "Enter ~ ."

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-21 10:58:55

    It seems that SSH has not been operated for a period of time and the session has been automatically disconnected.

    Server side:
    Modify the /etc/ssh/sshd_config configuration file ClientAliveInterval 300 (default is 0). The parameter means that every 5 minutes, the server sends a message to the client to maintain the connection. Use service sshd reload to make the modification effective. If you still find that there is a problem, you can try setting 300 to a smaller value, such as 60.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-21 10:58:55

    ctrl+z needs to be done twice

    reply
    0
  • Cancelreply