我在让客户端连接时遇到了一些问题。我可以让 ngrok 告诉我端口,但是当我转到客户端并执行时:
ssh <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c7b7a6aeb5b2b787a9a0b5a8ace9a4a8aa" rel="noreferrer noopener nofollow">[email protected]</a> -p 57613
我明白了
ssh_exchange_identification: Connection closed by remote host
有什么想法为什么会发生这种情况吗?我使用的是 Mac,我按照以下步骤操作:https://www.adaptivelab.com/blog/pair-programming-with-tmux/
非常感谢您的宝贵时间
最佳答案
可能是您运行 ngrok 的计算机上没有安装 ssh 服务器,因此连接被拒绝。
要安装它,只需在终端中键入以下内容:
sudo apt-get install openssh-server
关于pair-programming - 与 Tmux 和 Ngrok 配对,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23656649/