远程主机关闭了Ngrok SSH连接

远程主机关闭了Ngrok SSH连接,ssh,ngrok,Ssh,Ngrok,我正在使用Ngrok以SSH方式连接到我的远程Ubuntu机器。它似乎工作正常,但几分钟后出现以下错误: Connection to 0.tcp.ngrok.io closed by remote host. Connection to 0.tcp.ngrok.io closed. 在我的SSHconfig文件中,我有: TCPKeepAlive yes ServerAliveInterval 30 但它似乎无法避免这个问题。我能做什么?我也有类似的问题。我运行了/ngrok tcp22,在

我正在使用Ngrok以SSH方式连接到我的远程Ubuntu机器。它似乎工作正常,但几分钟后出现以下错误:

Connection to 0.tcp.ngrok.io closed by remote host.
Connection to 0.tcp.ngrok.io closed.
在我的SSH
config
文件中,我有:

TCPKeepAlive yes
ServerAliveInterval 30

但它似乎无法避免这个问题。我能做什么?

我也有类似的问题。我运行了
/ngrok tcp22
,在make case中的问题是,我没有在第22个端口的本地机器上启动并运行SSH服务器。在Linux上,您可以检查是否通过
systemctl status sshd
运行服务器,并通过
systemctl start sshd
运行服务器