To authenticate a connection from repository, you need to
1. Generate ssh keys in your machine
ssh-keygen -o -t rsa -C "your@email.com"
2. Copy the keys to github
Display the key
cat ~/.ssh/id_rsa.pub
Copy it to the ssh keys in github
3. Make sure the config files have the right url. Here is how it should look like. Make sure that the url has the structure shown below
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://git@github.com:22/mohamedabolfadl/dubbizle_scraper.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
remote = origin
Source
https://jdblischak.github.io/2014-09-18-chicago/novice/git/05-sshkeys.html