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?

gh) uses ssh protocol at all? Do you meangitcommand line? Git is not Github CLI but can be used with Github.git config set. Yep I'm talking aboutgh(the CLI, I know Git and the GitHub CLI are two different things).gh config set git_protocol ssh— that's not about Github CLI, it's the protocol to use for git clone and push operations. See cli.github.com/manual/gh_config. So the question remains: are you talking about usingghwith SSH orgit?ghthough.gh repo createruns over SSH. It's a Github API call so it runs over HTTPS. You needgh auth logoutandgh auth login.