canonball
canonball

Reputation: 515

Unable to access ssh using ngrok

I want to expose my system for accessing via ssh.

After running this ./ngrok tcp 12345, I see:

Forwarding                    tcp://0.tcp.ngrok.io:15909 -> localhost:12345

In my ~/.ssh/config, I add the following lines, as I have a proxy in my workplace:

Host ngrok
  Hostname 0.tcp.ngrok.io
  ProxyCommand corkscrew 172.16.2.30 8080 %h %p

To test, I am trying to access my own system from my own system (another shell) via ngrok. Then finally when I access using

ssh -p 15909 ngrok

it says:

ssh_exchange_identification: Connection closed by remote host

How do I access it?

Upvotes: 2

Views: 5206

Answers (1)

lacostenycoder
lacostenycoder

Reputation: 11226

See Unable to ssh into remote Linux by ngrok

but also try this from the new shell when you want to ssh into your ngrok

ssh <username>@0.tcp.ngrok.io -p 15909

where username is the user your sshing into

Upvotes: 2

Related Questions