ngrok ssh connection closed by remote host

Created on 31 Dec 2018  路  7Comments  路  Source: inconshreveable/ngrok

I got a ubuntu MATE on raspberry pi 3 model B. I ran the ./ngrok tcp 22 and got
image

But when I tried ssh [email protected] -p 19532 on my Mac, it gives me an error:
ssh_exchange_identification: Connection closed by remote host.

Could you help on this? Thank you.

Most helpful comment

I forgot to start the ssh on Ubuntu. "sudo /etc/init.d/ssh start" solved my issue.

All 7 comments

I have same error.
If i change my network.,it will come out same error.
Then i change back,it will ssh successfully.

I'm running into the same error. Trying to connect to Mac OSX Mojave host.

Running into the same error, trying to SSH into a raspberry pi.

I forgot to start the ssh on Ubuntu. "sudo /etc/init.d/ssh start" solved my issue.

My issue came down to changing the default SSH configurations for the Raspbian OS, once that was updated ngrok worked successfully.

@SmittoStuff - can you share the change? thanks!

@adrianog sure thing

In Raspbian, going to Preferences > Raspberry Pi Configuration > Interfaces will open a menu where different interfaces can be enabled. SSH is set to disabled by default - after this was enabled I was able to SSH in.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shubhamk1997 picture shubhamk1997  路  5Comments

christhesoul picture christhesoul  路  7Comments

alexforever86 picture alexforever86  路  5Comments

gauravrc picture gauravrc  路  4Comments

ricardopieper picture ricardopieper  路  3Comments