Create a repo. Make sure there is at least one file in it (even just the README) Generate ssh key:
ssh-keygen -t rsa -b ed25519 -C "your_email@example.com"
For legacy machine: ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Adding your SSH key to the ssh-agent