pycharm 突然无法连接远程服务器

具体报错如下:

Error running 'train': While creating remote tunnel for SshjSshConnection(@)@18ad558d: localhost:63342 <== localhost:63342

或者:

Error running 'train': Can't run remote python interpreter: Can't get remote credentials for deployment server [email protected]:22

解决办法:

Delete ~/.pycharm_helpers from remote host, and kill all opened SSH sessions that may still run in the background or reboot the remote host and try again.

我的做法:删除远程服务器中用户目录下的~/.pycharm_helpers 文件夹,删除本机pycharm中的远程解释器,清空Deployment中所有代码同步服务。然后,再重启pycharm,重新设置远程解释器,代码同步服务,问题解决。

 

参考:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004376340-Error-running-main-py-While-creating-remote-tunnel-for-SshjSshConnection

 

写给本就饱受代码折磨,现在pycharm还来踩一脚的我。。。。。

你可能感兴趣的:(pycharm 突然无法连接远程服务器)