天天看点

While creating remote tunnel for SshjSshConnection; Global request [global req for tcpip-forward

在win10上远程调试ubuntu端代码时,原来可以正常调试的代码,突然提示:While creating remote tunnel for SshjSshConnection( @ )@6ac86b66: localhost:63342 == localhost:63342: Global request [global req for tcpip-forward] failed。

网上常见的解决方法:

  • pycharm中,通过搜索 Register,然后关闭两个设置就可以。 ide.ssh.library.backend.use.sshj

    ide.ssh.library.backend.webDeployment.use.sshj

    While creating remote tunnel for SshjSshConnection; Global request [global req for tcpip-forward
  • 通过重新配置远程编译器。
    While creating remote tunnel for SshjSshConnection; Global request [global req for tcpip-forward

当以上两种方法不能解决问题时,可以尝试替换配置的远端文件夹:

/.pycharm_helpers/

While creating remote tunnel for SshjSshConnection; Global request [global req for tcpip-forward

如果服务端恰好有可以正常运行、调试项目使用的其他路径下的

.pycharm_helpers/

,可以直接替换掉我们配置的文件夹内容,或者将我们的指定的路径替换一下。可以通过运行、调试项目查看

.pycharm_helpers/

路径:

While creating remote tunnel for SshjSshConnection; Global request [global req for tcpip-forward

或者找一台可以调试代码的ubuntu机器中

.pycharm_helpers/

进行替换