Skip to content

Instantly share code, notes, and snippets.

@atxiii
Last active April 18, 2019 18:30
Show Gist options
  • Save atxiii/cd8589ca9d578cef3ed711c0ac367666 to your computer and use it in GitHub Desktop.
Save atxiii/cd8589ca9d578cef3ed711c0ac367666 to your computer and use it in GitHub Desktop.
git clone include passphrase key with vs code on OpenSUSE(Tumbleweed)

git clone include passphrase key with vs code on OpenSUSE(Tumbleweed)

How to clone a git repository (include passphrase) with vscode

First download private key (from manage-ssh cpanel or etc) after download you can copy your private key to ~/.ssh folder

cp your-key ~/.ssh

then change permission:

chmod 600 your-key

So create a config file on ~/.ssh then paste below config

Host *
    IgnoreUnknown AddKeysToAgent,UseKeychain
    UseKeychain yes
    AddKeysToAgent yes
    IdentityFile ~/.ssh/yourkey

Now open vscode -> ctrl+shift+p -> type: git clone -> past your ssh address -> then open a box -> type your passphrase

Finish.

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