How can I add SSH keys for Git?

Hello, I’m trying to turn my VPS server that’s running CyberPanel into a Git server. I was wondering how I can add SSH keys to my Git server so that I can properly clone down repos. Is it just via the ~/.ssh folders? Or is there a specific location to be store those SSH keys, both remotely and locally?

Currently, I have a some what working scenario only because I manually added the URL as remote in my local .gitconfig file. I want to be able to run my Git server just like Github. Currently, it only clones down the manual repo I had put into .gitconfig. Every time I request for a new repo via HTTPS, it just keeps bringing down that manual repo.

check this official guide