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

16,376

Solution 1

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

Solution 2

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

Solution 3

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.

Solution 4

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

Share:
16,376
Ryabchenko Alexander
Author by

Ryabchenko Alexander

lead python developer 8 years at Yandex MIPT if you want reach me => @ra_coder at telegram

Updated on June 28, 2022

Comments

  • Ryabchenko Alexander
    Ryabchenko Alexander about 2 years

    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

  • Marcin Ginszt
    Marcin Ginszt over 3 years
    Next time, could please tell us, what was the solution?
  • phi
    phi about 3 years
    This is somewhat strange, but it worked for me to remove the "Visible only for this project" flag on the Deployment configuration (!)
  • marco
    marco almost 3 years
    Same for me. However, unchecked both. But thanks for the hint. Maybe if I had read every page of the documentation, with a bit of luck I could have known it
  • joebeeson
    joebeeson over 2 years
    This was the only solution I could get to reliably work, thanks!
  • haneulkim
    haneulkim over 2 years
    This is the only solution that works for me too, but tired of resetting everytime this happens. Does anyone know reason for this?
  • Gulzar
    Gulzar over 2 years
    the mouse in the image trolled me before the morning coffee!