Caused by remote being set to HTTPS rather than SSH
check with: git remote -v
git@github should be present for ssh
https://github.com should be present for HTTPS
to change to ssh: git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
to change to https: git remote set-url origin https://github.com/USERNAME/REPOSITORY.git