In this comprehensive tutorial, dive into the world of Git with a focus on SSH authentication. Learn what SSH is, and how to generate SSH keys step by step. Explore the significance of parameters like -t rsa -b 4096 -f in the key generation process and understand their implications.
Follow along as we demonstrate how to add your SSH public key to your GitHub account seamlessly, ensuring a secure connection for your Git operations. Witness the entire process from creating a new repository to committing changes and pushing them to GitHub, all while utilizing SSH authentication. Whether you're a Git novice or seeking to enhance your skills, this tutorial provides invaluable insights to streamline your Git workflow and bolster your repository security.
The command we used in this is below.
ssh-keygen -t rsa -b 4096 -f ~/.ssh/nameOfYourKey
config file
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/yourPrivateSshKeyName
IdentitiesOnly yes
![](https://i.ytimg.com/vi/dR3VKLXZAqY/maxresdefault.jpg)