Here’s how to change your remote from https to ssh.
Start by checking your current remote:
git remote -v
and this will list your remotes for both push and fetch.
To set a remote, you can use
git remote set-url origin git@github.com:username/project.git
and then use remote again to confirm:
git remote -v
now your git pull and git push will work as you expect!