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

feat: mount user ssh folder for git authentication #1436

Open
kemingy opened this issue Jan 21, 2023 · 1 comment
Open

feat: mount user ssh folder for git authentication #1436

kemingy opened this issue Jan 21, 2023 · 1 comment

Comments

@kemingy
Copy link
Member

kemingy commented Jan 21, 2023

Description

When developing in the container, users may want to submit the commits. But it will fail because there is no public/private key there.

 ⬢ [envd]❯ git push --set-upstream origin add_envd
The authenticity of host 'github.com (XXXXXXXXXXX)' can't be established.
ECDSA key fingerprint is SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

mosec on git add_envd [$] is 📦 v0.4.5 via Py v3.9.16 via 🦀 v1.66.1 via 🅒  envd took 3s
[128:] ⬢ [envd]❯ ls $HOME/.ssh

⬢ [envd]❯

Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

@gaocegege
Copy link
Member

It should work with the agent forwarding. Thus it is not a feature, it should be a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants