Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to Github without supplying your username and personal access token at each visit.
Steps to check SSH is installed
First of all, check if you already have an SSH key! 1. Open Git bash.
2. Use the following command:$ ls -al ~/.ssh
Next, If you don’t have any SSH keys, we’ll proceed to generate a new SSH key for authentication.
1. Open Git bash.
2. Use the following command:
$ ssh-keygen -t ed25519 -C "<your_email_address>"
This creates a new SSH key.
3. When you’re prompted to “Enter a file in which to save the key”, press Enter. Thus, It’ll store in the default location.
4. At the prompt, type a secure passphrase or keep it empty for no passphrase.
Now, it’s time to add this new SSH key to your Github account!
- Copy your public key.
- In the browser, go to your Github account. Click on the your profile picture in the upper right corner of the page.
- Go to settings. In the user settings, click on “SSH and GPG keys“.
- Click on “New SSH key”.
- Paste your copied key in the textbox.
- Click on “Add SSH key” button.
- Now, You’re key is successfully added to your Github account.
Last but not the least, Test your SSH connection.
- Open Git Bash.
- Use the following command:
$ ssh -T git@github.com
You’ll receive a message saying you’re authenticated or permission denied!
You can also check How To Add GIT Submodule?
Aw, this was a really nice post. In idea I would like to put in writing like this additionally ? taking time and actual effort to make a very good article? but what can I say? I procrastinate alot and by no means seem to get something done.
Subscription Enabled! you can subscribe now!!
Spot on with this write-up, I truly think this website needs much more consideration. I?ll probably be again to read much more, thanks for that info.
This really answered my problem, thank you!
Subscription Enabled! you can subscribe now!!
I discovered your blog site on google and check a few of your early posts. Continue to keep up the very good operate. I just additional up your RSS feed to my MSN News Reader. Seeking forward to reading more from you later on!?
I like the valuable information you provide in your
articles. I will bookmark your weblog and check again here
frequently. I am quite certain I’ll learn many new stuff right here!
Good luck for the next!