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

SSH key added from the dashboard by pasting the key strings, is invalid #23073

Closed
vinokurig opened this issue Aug 6, 2024 · 0 comments · Fixed by eclipse-che/che-dashboard#1168
Assignees
Labels
area/dashboard 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.

Comments

@vinokurig
Copy link
Contributor

Describe the bug

SSH key created from the dashboard User Preferences page, by pasting the key strings, is invalid.
The project-clone error log:

2024/08/06 11:47:06 Read DevWorkspace at /devworkspace-metadata/flattened.devworkspace.yaml
2024/08/06 11:47:06 Processing project test
2024/08/06 11:47:06 Cloning project test to /projects/project-clone-1476729771/test
Cloning into '/projects/project-clone-1476729771/test'...
Warning: Permanently added 'github.com,140.82.112.4' (ECDSA) to the list of known hosts.
Load key "/etc/ssh/dwo_ssh_key": invalid format
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
2024/08/06 11:47:06 Encountered error while setting up project test: failed to clone project: failed to git clone from [email protected]:vinokurig/test.git: exit status 128

Che version

7.89@latest

Steps to reproduce

  1. Generate an SSH key locally
  2. Go to Dashboard -> User Preferences -> SSH Keys
  3. Click Add SSH Key
  4. IMPORTANT: extract the content of the generated public and private keys and paste it manually to the inputs.
  5. Save the key
  6. Try to start a workspace from an ssh url e.g. [email protected]:vinokurig/test.git

See: when workspace starts, the project is not cloned.

Expected behavior

The project must be cloned

Runtime

OpenShift

Screenshots

No response

Installation method

chectl/next

Environment

macOS

Eclipse Che Logs

No response

Additional context

SSH key works if it is uploaded from files.

@vinokurig vinokurig added the kind/bug Outline of a bug - must adhere to the bug report template. label Aug 6, 2024
@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 Aug 6, 2024
@dkwon17 dkwon17 added severity/P1 Has a major impact to usage or development of the system. area/dashboard and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Aug 6, 2024
@ibuziuk ibuziuk moved this to 📅 Planned in Eclipse Che Team A Backlog Aug 7, 2024
@akurinnoy akurinnoy moved this from 📅 Planned to 🚧 In Progress in Eclipse Che Team A Backlog Aug 16, 2024
@akurinnoy akurinnoy moved this from 🚧 In Progress to Ready for Review in Eclipse Che Team A Backlog Aug 19, 2024
@akurinnoy akurinnoy moved this from Ready for Review to ✅ Done in Eclipse Che Team A Backlog Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard 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.
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants