Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git clone using private key with password is not working #16517

Closed
1 of 3 tasks
rhopp opened this issue Apr 1, 2020 · 1 comment
Closed
1 of 3 tasks

Git clone using private key with password is not working #16517

rhopp opened this issue Apr 1, 2020 · 1 comment
Assignees
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community.

Comments

@rhopp
Copy link
Contributor

rhopp commented Apr 1, 2020

Describe the bug

When trying to clone git repository using git@gitlab.com/something/something using ssh key, which is protected by password, Che never asks me for a password and the clone fails with this error:

git clone git@gitlab.something/something/web-app.git /projects/web-app
Cloning into '/projects/web-app'...
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Che version

che.openshift.io

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  • Generate ssh keypair with a password (ssh-keygen)
  • Upload public part of that key to gitlab/github
  • Start any workspace
  • upload private part of the key to the workspace
  • try to clone some repo using this format -> git@gitlab.something/something/web-app.git

Expected behavior

Repo is cloned

@rhopp rhopp added the kind/bug Outline of a bug - must adhere to the bug report template. label Apr 1, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Apr 1, 2020
@sleshchenko sleshchenko added severity/P1 Has a major impact to usage or development of the system. area/editor/theia Issues related to the che-theia IDE of Che and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Apr 3, 2020
@sleshchenko
Copy link
Member

Reproduced with Git: Clone action as well.
Screenshot_20200403_093902
As a workaround, it's possible to clone project manually from terminal:
Screenshot_20200403_093953

putting p1 since it's typical to set passphrase for ssh keys

@ericwill ericwill mentioned this issue Apr 6, 2020
47 tasks
@vinokurig vinokurig self-assigned this Apr 21, 2020
@vinokurig vinokurig added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Apr 21, 2020
@ericwill ericwill mentioned this issue Apr 22, 2020
52 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants