I prefer to explain in detail how to fix that and then say in one short sentence how easier I would fix it on Linux if it happened on Linux, which it obviously wouldn’t. It’s usually completely unbiased and I’m a popular person :)
I’m not sure about the exact commands, but you do something like gh auth login to authenticate the CLI and then something like gh ssh setup to change ssh’s config file to authorize using the GH CLI.