On Ubuntu 20.04, I installed the gh CLI tool via:
sudo snap install gh
Then, trying to gh repo clone a public repo resulted in the error:
Error: warning: unable to access '/etc/gitconfig': Permission denied
This happened via HTTPS, and SSH with freshly generated key. Related QAs like this one point at the possibility of an issue with installation.
How to fix this, so I can have the closest thing to the good old clone with SSH key?