I have various GitHub accounts and for each account I have SSH set up. So under ~/.ssh
I have a public and private key for each account.
I want to use the GitHub CLI, but I am not sure how I can tell the CLI to use a particular SSH key.
In case it is relevant, this is what I get when I run ssh-add -l
:
Example Scenario
I want to run gh repo create
on GitHub account B
, but for some reason, the repo got created on GitHub account A
. Is there a way I can tell gh
what account to use?