Skip to content

Instantly share code, notes, and snippets.

@VegarRingdalAibel
Last active July 21, 2022 07:02
Show Gist options
  • Select an option

  • Save VegarRingdalAibel/37223549145668b735b355323f19ee80 to your computer and use it in GitHub Desktop.

Select an option

Save VegarRingdalAibel/37223549145668b735b355323f19ee80 to your computer and use it in GitHub Desktop.
multi ssh git accounts

config under users/your_user_name/.ssh

Host username1 github.com

Hostname github.com

IdentityFile ~/.ssh/somefile1

User git

Host username2 github.com

Hostname github.com

IdentityFile ~/.ssh/somefile2

User git

git clone username2:some_repo_user/repo_name

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