If you are tired of typing passwords and pretending you enjoy the thrill of a failed push you do not need to suffer any longer. This short guide shows how to find a GitHub SSH URL and clone a repo using SSH keys and the command line. No ritual sacrifices required just a few clicks and a tiny bit of keyboard bravery.
git at github dot com slash username slash repo dot git
Replace username and repo with your actual values before running commands.If you do not already have an SSH key pair on your machine generate one. For modern security use ed25519 with a command like this
ssh-keygen -t ed25519 -C "you@example.com"
That creates a public key file that usually ends with .pub. Copy the contents of that file and add it to your GitHub account under Settings then SSH and GPG keys. Paste the key into the web form and give it a name that will not embarrass you later.
Make sure GitHub can see your key before any dramatic cloning attempts. Run this test and expect a friendly greeting if all is well
ssh -T git@github.com
If you see a message that welcomes you then congrats. If you see a permission denied message do not panic. Check that the public key is uploaded and that your ssh agent is offering the right key.
Now for the main event. Use the SSH link you copied earlier. In plain text the command looks like this
git clone git at github dot com slash username slash repo dot git
That maps to the SSH URL format GitHub provides and will clone the repository to your machine without asking for your password on every network hiccup.
That is it. You found the SSH URL you copied the right link you generated or added an SSH key and you cloned the repo. Now go write code or at least fix one typo and call it progress.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.