SSH 连接在成功登录几秒后被远程主机关闭

SSH connection closed by remote host after few seconds of successful login

我正在尝试使用 pem 文件通过 ssh 连接到我的 AWS 服务器。它能够连接但是在 in-activity 几秒钟后它注销说 "Connection closed by remote host".

我也试过-o TCPKeepAlive=true,但也没用。

这里的问题是我的 Internet 连接。我在用 Jio。我将其更改为另一家互联网提供商的那一刻;它工作正常。