While creating remote tunnel for SshjSshConnection(root@173.19.59.9)@6ac8d3d0: localhost:55453 == localhost:43023: Global request [global req for tcpip-forward] failed。

使用Pycharm 连接远程环境,报错:While creating remote tunnel for SshjSshConnection(root@173.19.59.9)@6ac8d3d0: localhost:55453 == localhost:43023: Global request [global req for tcpip-forward] failed。

 

  

解决:修改sshd配置文件

(1)vim /etc/ssh/sshd_config

(2)看看AllowTcpForwarding后面是yes还是no,如果是no把改为yes,否则可能是其它问题。

(3)重启sshd服务,注意,一定要重启。systemctl restart sshd.service

posted @ 2024-07-31 15:06  TW-NLP  阅读(112)  评论(0编辑  收藏  举报