Chaining Remote-SSH + Dev Container breaks git credentials forwarding #10862
Labels
containers
Issue in vscode-remote containers
info-needed
Issue requires more information from poster
Description
I have a MacBook and a Ubuntu laptop. I tried to use Remote-SSH extension from Mac to connect to the Ubuntu and then use the Docker extension to attach to a container hosted on the Ubuntu laptop. I expected the git credentials to be correctly forwarded from my Mac to the remote container. However, none of them succeeded.
In the window attached to the remote container,
gpg -k
gives me exactly the same lists of keys on the Ubuntu laptop but not the Mac and~/.ssh/
directory contains nothing but aknow_hosts
file whose contents also come from the Ubuntu host. Another weird thing here is that the gpg keys on the Mac is a strict subset of those on the Ubuntu so GPG should succeed though it's getting keys from the wrong host; I suspect it's related to pinentry stuff but I'm not sure.I also tried the following combination ("->" means "connect to"):
and they all worked well, SSH OK, GPG OK.
Environment
Steps to Reproduce
Does this issue occur when you try this locally?: No
Does this issue occur when
you try this locally andall extensions are disabled?: YesThe text was updated successfully, but these errors were encountered: