我已经在 /etc/ssh/ssh_config 中设置了以下内容
Host *
ServerAliveInterval 100
以及 /etc/ssh/sshd_config 中的以下内容
ClientAliveInterval 100
ClientAliveCountMax 3
以下是输入密码后ssh的日志。
root@localhost's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
debug1: Authentication succeeded (password).
Authenticated to localhost ([127.0.0.1]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: send packet: type 1
packet_write_wait: Connection to 127.0.0.1 port 22: Broken pipe