Skip to content

DevWorkspace doesn't respect SSH key passphrase when git pushing changes from workspace #1295

@dmytro-ndp

Description

@dmytro-ndp

Description

Related changes:

How To Reproduce

Prerequisites:

a) create SSH key with passphrase, using the command ssh-keygen -b 2048 -t rsa -N "test"
b) add it to the GitHub.com

Steps to reproduce:

  1. Install Eclipse Che using User Dashboard https://quay.io/repository/eclipse/che-dashboard:pr-1157 with support of SSH key with passphrase
  2. Open User Dashboard and add SSH key to the User Preferences.
  3. Go to GitHub.com and get SSH link to any private repo using.
  4. Go to "Eclipse Che -> Create workspace" page and create workspace using SSH link to the private repo.
  5. Wait on workspace to be created, started, and project to be cloned.
  6. Make changes in the project, commit them and push.
  7. Go to workspace Terminal and try to push changes from there.
Let.Dev.Spaces.keep.ssh.passphrase.for.git.webm

Expected behavior

Changes are pushed without errors or asking for passphrase.

Actual behavior

screencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.08.06-14_39_32.webm

At the step 6

there was an error Git: Warning: Permanently added the ECDSA host key for IP address '140.82.112.3' to the list of known hosts. when tried to push changes to the repo using Source Control view of VS Code Editor.
git-error log:

> git pull --tags origin main
Warning: Permanently added the ECDSA host key for IP address '140.82.112.3' to the list of known hosts.
[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.

Screenshot from 2024-08-06 14-42-49

At the step 7

there was a request to enter passphrase for key '/etc/ssh/dwo_ssh_key":
Screenshot from 2024-08-06 14-42-00

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions