How to connect a private repository?

So, how to connect a private repository? I already authorized my Github account but when I paste a private repo URL it says the repo doesn’t exist.