Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Git to use a different SSH key #2884

Open
EtienneM opened this issue Nov 29, 2024 · 0 comments
Open

Configure Git to use a different SSH key #2884

EtienneM opened this issue Nov 29, 2024 · 0 comments

Comments

@EtienneM
Copy link
Member

Use case is the following:

A customer has two Scalingo accounts, with a SSH key associated on each account. When they git push on a Scalingo remote, they sometime want git to use either one SSH key or the other depending on which Scalingo account owns the application.

One solution is to change a Git configuration to instruct git to use a specific SSH key:

git config core.sshCommand "ssh -i ~/.ssh/my_other_key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant