小编Rob*_*ert的帖子

SSH 连接不断掉线

我已按如下方式配置 SSH 连接:~/.ssh/config在客户端

ServerAliveInterval 1
ServerAliveCountMax 1200
Run Code Online (Sandbox Code Playgroud)

并在/etc/ssh/sshd_config服务器端:

ClientAliveInterval 5                                                                                                          
ClientAliveCountMax 1200             
Run Code Online (Sandbox Code Playgroud)

尽管如此,当登录到远程服务器时,虽然我认为我的连接相当稳定,但我发现我的 SSH 连接在大约 15 到 60 秒后不断断开。ssh <server> -vvv总是以

...
debug3: send packet: type 80
debug3: receive packet: type 82
debug3: send packet: type 80
debug3: receive packet: type 82
debug3: send packet: type 80
debug3: send packet: type 80
debug3: send packet: type 80
debug3: send packet: type 80
debug3: send packet: type 80
debug3: receive packet: type 98
debug1: client_input_channel_req: …
Run Code Online (Sandbox Code Playgroud)

networking linux ssh

5
推荐指数
1
解决办法
6612
查看次数

标签 统计

linux ×1

networking ×1

ssh ×1