Reputation: 388
I'm using Ngrok to SSH to my remote Ubuntu machine. It seems to be working properly but after a few minutes I get the following error:
Connection to 0.tcp.ngrok.io closed by remote host.
Connection to 0.tcp.ngrok.io closed.
In my SSH config
file I have:
TCPKeepAlive yes
ServerAliveInterval 30
but it does not seem to avoid the problem. What can I do?
Upvotes: 2
Views: 7521
Reputation: 95
I had similar problem as well.
I ran ./ngrok tcp 22
and the issue was that I didn't have a SSH server up and running on port 22 of the local machine.
On Linux, you can check if you ran server by systemctl status sshd
and run it by systemctl start sshd
.
Upvotes: 2