Vscode-remote-release: Git clone failed. Bad configuration option: usekeychain

Created on 3 Feb 2020  路  3Comments  路  Source: microsoft/vscode-remote-release

On MacOS, Remote-Containers: Open Repository in Container fails if my local config has entries that linux doesn't understand. For instance, the GitHub-suggested default of:

Host *
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_rsa

Will cause the clone stage to fail with the above error.

Possibly related to work in cloning the local ssh over to the remote in #1980?

bug containers needs-more-info

Most helpful comment

I had a similar issue with git clone.
Fixeb by adding to the first line of the file:
IgnoreUnknown AddKeysToAgent,UseKeychain

Adding this under "Host *" is not effective.

All 3 comments

I had a similar issue with git clone.
Fixeb by adding to the first line of the file:
IgnoreUnknown AddKeysToAgent,UseKeychain

Adding this under "Host *" is not effective.

Is this still a problem? We no longer mount .ssh/config into the container.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

Was this page helpful?
0 / 5 - 0 ratings