dev-environments
dev-environments copied to clipboard
SSH Key is not being used to clone which makes the clone fails
Describe the bug I add the repo to clone (Dev Environment) using SSH as an url. When cloning it fails saying that the password is not being given. However, on my pc I have the key in my user directory and usually works without any issues.
The big point here is that the SSH Key is not being used to clone which makes the clone fails.
To Reproduce Steps to reproduce the behavior:
- Go to 'Docker'
- Click on 'Dev Environments'
- On top right, put a private git ssh repo.
- Click on
Create
- Look at the message in the container.
Expected behavior I expect the clone to work
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Version Docker: 20.10.7
Additional context Add any other context about the problem here.
Hi @Nordes,
Cloning over SSH only works if you have the SSH key loaded into the ssh-agent.
Could you try and add your key to the agent and re-clone?
I have a similar issue. I'm on windows using GIT_SSH
to set my ssh-agent to plink.exe
, but docker is ignoring this and not using the private key.
@zeroZshadow do you mean pageant?
Could you run this in a power shell [System.IO.Directory]::GetFiles("\\.\\pipe\\")
and tell us if you see a pipe named openssh-ssh-agent
please?
Yes I do mean pageant.
I'm not seeing a pipe with this name while pageant is running.
Thanks!
Do you see a pageant
pipe in that command?
Do you happen to have the SSH_AUTH_SOCK
environment variable set?
I do see a pageant pipe, \\.\\pipe\\pageant.zeroZshadow.99eb623bb0fd37e43d14e4c4197b1c759ae8ee0614493180154c80cc4a40b293
I do not have SSH_AUTH_SOCK
set.
Great, @zeroZshadow I'll create a ticket in our internal issue tracker and we'll try to find a way for the clone over ssh to work when you have pageant.
Thanks, all this information is super useful for us ;)
Thank you very much for all the work!