Ryabchenko Alexander
Ryabchenko Alexander

Reputation: 12380

PyCharm "Can't get remote credentials for deployment server"

After config remote interpreter and deployment I got the following error when PyCharm trying to install libs from requirements.txt

Can't get remote credentials for deployment server

Upvotes: 33

Views: 39296

Answers (8)

thisisyuan
thisisyuan

Reputation: 11

I encountered the same issue. What I did was reconfigure the interpreter using ssh again. Everything worked then.

Upvotes: 1

Stavros Tranidis
Stavros Tranidis

Reputation: 21

In my situation, I deleted my project and created and configured it again. My configuration is related to an ssh interpreter and a remote deployment. So even if I have configurated as right, this error appears.

So, the solution was not only to configure it right but to remove the old remote interpreter as well.

Upvotes: 1

Ahmad
Ahmad

Reputation: 742

In my situation, I configured many interpreters in Pycharm for various projects. I tried all the probable solutions (listed in this post) but was unsuccessful, so I Deleted all the interpreters and restarted Pycharm. Then I reconfigured the remote interpreter, and it now work fine.

Upvotes: 0

Ben Butterworth
Ben Butterworth

Reputation: 28522

I encountered this issue 2 ways:

  • the SSH configuration was configured correctly, but the python interpreter was using the wrong interpreter (that was deleted previously).
    • Solution: go to the interpreter settings and re-select your "deployment configuration". PyCharm's "Configure Remote Python Interpreter" window
  • The SSH configuration was scoped to the project. Remote Interpreters cannot use deployments which in turn use project-specific configuration (Visible only for this project is checked). SSH configuration must be saved in the IDE settings, so you should uncheck this option. This is the same as chickahoona's answer.

Upvotes: 3

Peilin
Peilin

Reputation: 156

I'm using SSH to achieve my Interpreter and encountered sameerror. I tried solutions above, but all in vain.

My solution is, make sure you choose the SSH when you configure your Interpreter. (When I choose Deployment configuration as default, error comes)enter image description here

Then, configure your deployment in the Tools. enter image description here

Another solution is remove your current Python Interpreter and setup a new one. This also works for me.

Upvotes: 12

Tuan Nguyen
Tuan Nguyen

Reputation: 53

For me, remove the debug configuration and create a new one worked

Upvotes: 3

chickahoona
chickahoona

Reputation: 2034

I had the same problem. I configured first a deployment server and then the remote interpreter using the same deployment server config. I was asked if I want to either create a copy or move the configuration from the project level to the IDE level. I moved it.

The problem is that the credentials for the server are only available on the project level. To solve it I had to:

  • go back to the Deployment Configuration
  • click on these "..." till I reached the "SSH Configurations"
  • Unchecked the "Visible only for this project" checkbox

enter image description here

Upvotes: 40

Ryabchenko Alexander
Ryabchenko Alexander

Reputation: 12380

it happen to be wrong configuration of remote interpretor, i configured it once again and all works

Upvotes: 0

Related Questions