问题描述
我已经使用Pycharm连接了我的远程服务器,并且运行良好。但是在我添加了第二个连接到另一台服务器之后。它报告错误:Couldn't upload helpers for remote interpreter: Authentication Failed: Exhausted available authentication methods
,并且以前的连接也失败了。
以下是我采取的一些措施,但无效。
我为我做的最后一件事是
转到Deployment -> connection -> Authentication
,选择Key pair openssh or PuTTY
,然后选择private key path
。 Test Connection
并且有效。
解决方法
转到Deployment -> connection -> Authentication
,选择Key pair openssh or PuTTY
,然后选择private key path
。 Test Connection
并且有效。
如果您在 Pycharm 中遇到问题,您很有可能无法使用 Putty / Terminal (Mac) 进行 SSH。请先尝试通过 Putty / Terminal ssh 进入主机。如果您修复了 Putty / Terminal (Mac) 的问题,您也会自动修复 Pycharm 的身份验证失败错误。就是这样,我修好了我的。