我使用 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
它奏效了。