I'm new to GitHub and, after having followed this tutorial, I'm trying to understand SSH keys.
I already created a key and added it to my account. For the moment I have no more than a few test repositories, which I clones locally.
Now, the problem is that, even if I do not set my ssh-agent
(or I remove all the keys from GitHub) I can still update my repos and push to them.
The only thing I can't do with a verified key is cloning a repository using the SSH link (e.g. git@github.com:username/repository.git
), but I can still clone and push to repositories using the https link (e.g. https://github.com/username/repository.git
).
I initially thought that cloning was allowed using the https but I could not push, but I can even push and it does not ask any usernames of passwords!
So, what's the purpose of SSH keys if anyone can still do the same things that I do with a verified key? Does it have to do with privileges and permissions?