【问题标题】:Unable to access ssh using ngrok无法使用 ngrok 访问 ssh
【发布时间】:2018-02-09 11:31:58
【问题描述】:

我想公开我的系统以通过 ssh 访问。

运行此./ngrok tcp 12345 后,我看到了:

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

在我的~/.ssh/config 中,我添加了以下几行,因为我的工作场所有一个代理:

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

为了测试,我试图通过 ngrok 从我自己的系统(另一个 shell)访问我自己的系统。然后最后当我访问使用

ssh -p 15909 ngrok

上面写着:

ssh_exchange_identification: Connection closed by remote host

如何访问它?

【问题讨论】:

标签: ssh


【解决方案1】:

Unable to ssh into remote Linux by ngrok

但当你想通过 ssh 进入你的 ngrok 时,也可以在新的 shell 中试试这个

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

其中 username 是您连接的用户

【讨论】:

    猜你喜欢
    • 2021-07-15
    • 2022-01-17
    • 1970-01-01
    • 2020-03-25
    • 2014-08-31
    • 2020-02-04
    • 1970-01-01
    • 2013-05-16
    • 1970-01-01
    相关资源
    最近更新 更多