How to setup SSH for Github in Linux?

A developer, geek, enthusiast, who loves to solve problems and fix things with technology.I am working on 💻frontend web development with Javascript and I love contributing to 🌟 open source.
Search for a command to run...

A developer, geek, enthusiast, who loves to solve problems and fix things with technology.I am working on 💻frontend web development with Javascript and I love contributing to 🌟 open source.
Recently I have been working on migrating an old React application based on react-scripts to support Node.js 18. To make it work, I came across multiple npm tricks that helped solve these issues, so I am going to explain and document them in this blo...
Over the years I have picked up a lot of GitHub tricks, ways that I work around GitHub. I mostly use some set of commands and want to make a list of it & have it for reference. Setting Up SSH: I think anyone who is working with Git & GitHub should se...
The terminal is essential software for any developer or engineer. It is one of their daily drivers, so a terminal with better tools will not only save you time but also increase productivity. These are some key features that make Atuin stand out in y...

I have worked mostly in small & early-stage startups but got an opportunity to work at a large organization like Amazon. Listing down the different processes that are followed in both the organizations describing the development process & release pro...

2023 has been a rollercoaster ride for me. I faced a layoff early in the year from my last company, Hootboard, but bounced back and joined Amazon. Even though it is a contract role, it was the best decision I made. I traveled to the React Nexus confe...

The developer's most used tool was Github, so every time you push your changes you will be asked to enter your Github details which is a tiresome work so setting an ssh key to your Github will make your life a lot easier.
git config --global user.name 'Your GitHub username'
git config --global user.email 'your GitHub associated email'
ls ~/.ssh
ssh-keygen -t rsa -b 4096 -C "your_github_email@example.com"
Now you have to copy the ssh and paste it in your github ssh settings, we can copy the ssh key easily using xclip.
First install XCLIP through the following command
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
Now open your GitHub account in the browser go to settings and select SSH and GPG Keys from the left sidebar.
Now Click New SSH Key button.
Now enter Your title and enter the copied ssh key from earlier.

ssh -T git@github.com
Hi Username! You've successfully authenticated, but Github does not support shell access.
If you are struck anywhere, please refer to this video tutorial https://www.youtube.com/watch?v=HfTXHrWMGVY.
Please try to use SSH for GitHub as it makes a life a lot easier and secure. If you are struck anywhere feel free to comment below I can help you to set up or some can help with your problem.