0

I am trying to push project files to a network repository on Gitlab using PhpStorm.

I have installed Git and generated an SSH key with a password, and added the key to Gitlab.

enter image description here

I have also copied my Gitlab profile's SSH URL to the clipboard.

enter image description here

Now, when I go to PhpStorm's VCS->Git->Push, click on "Define remote", Paste the Gitlab SSH URL into the "URL" field, and click "OK", PhpStorm displays a message containing a very different key than the one I set up in Gitlab.

Here are pics of the steps I take in PhpStorm:

Step 1:

enter image description here

Step 2:

enter image description here

Step 3:

enter image description here

Look closely at this dialog box. It is listing a different key than the one I added to my Profile in Gitlab.

If I click "Yes" or "No", it asks me for the key's password. If type in the password that was defined for the other key, PhpStorm does not accept it.

Where could the key shown in Step 3 come from?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
user3163495
  • 2,425
  • 2
  • 26
  • 43

1 Answers1

1

The key shown in the popup box is the SSH Host Key of the server that hosts your GitLab instance and is used to verify that you are connecting to the server you expected to connect to.

It has no relation to your SSH key you set in GitLab.

As for your final question, the password that PHPStorm is asking for could be the password of the git user. Checkout this question and this question for help resolving that issue.

Community
  • 1
  • 1
BrokenBinary
  • 7,731
  • 3
  • 43
  • 54