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

Support for passphrase protected SSH keys #19109

Closed
1 task done
vitaliy-guliy opened this issue Feb 19, 2021 · 0 comments
Closed
1 task done

Support for passphrase protected SSH keys #19109

vitaliy-guliy opened this issue Feb 19, 2021 · 0 comments
Assignees
Labels
area/plugins kind/bug Outline of a bug - must adhere to the bug report template. new&noteworthy For new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notes severity/P1 Has a major impact to usage or development of the system. sprint/current
Milestone

Comments

@vitaliy-guliy
Copy link
Contributor

Describe the bug

SSH:Upload Private Key... command must upload a private key to your workspace and register it with ssh-add.

The command says that everything's OK, and the key is successfully uploaded.

Screenshot from 2021-02-19 13-16-49

But cloning the git repository using SSH link fails.

Screenshot from 2021-02-19 13-17-32

Che version

  • nightly

Steps to reproduce

  1. Generate SSH key on your local machine, enter passphrase when asked.
ssh-keygen -t ed25519 -C "your_email@example.com"
  1. Add generated public key to your GitHub account

  2. Go to Che-Theia, open command palette, find and run SSH: Upload Private Key...

  3. Enter name for uploaded (it's just a label for uploaded fey, enter anything here)

  4. Enter passphrase for your key, which you entered when generating the key

Che-Thea on this step will say that the key was successfully added.

  1. Open a terminal in theia-ide container, go to /projects and clone any project with SSH URI
    e.g. git@github.com:eclipse/che-theia.git

Upload the file by hands:

  • open a terminal in theia-ide. Remove all registered keys with ssh-add -D. If it says that Could not open a connection to your authentication agent., run the agent with ssh-add -D and try to remove keys again
  • drag and drop the keyfile to explorer view
  • change file permissions chmod 0600 keyfile
  • register the file with ssh-add keyfile
  • clone the repository again git clone git@github.com:eclipse/che-theia.git

Screenshot from 2021-02-19 13-37-26

@vitaliy-guliy vitaliy-guliy added 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. area/plugins labels Feb 19, 2021
@ericwill ericwill mentioned this issue Feb 25, 2021
46 tasks
@ericwill ericwill added this to the 7.28 milestone Mar 2, 2021
@ericwill ericwill mentioned this issue Mar 24, 2021
46 tasks
@ericwill ericwill modified the milestones: 7.28, 7.29 Mar 24, 2021
@l0rd l0rd added the new&noteworthy For new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notes label Mar 30, 2021
@l0rd l0rd changed the title SSH Upload Private Key does not work as expected Support for passphrase protected SSH key does not work as expected Mar 30, 2021
@l0rd l0rd changed the title Support for passphrase protected SSH key does not work as expected Support for passphrase protected SSH keys Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugins kind/bug Outline of a bug - must adhere to the bug report template. new&noteworthy For new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notes severity/P1 Has a major impact to usage or development of the system. sprint/current
Projects
None yet
Development

No branches or pull requests

3 participants