How can I set ssh key in GitHub

0 votes

Hi,

I am facing problem to set ssh key in GitHub. Whenever I want to push something in GitHub, it is asking user name and password everytime.

Can someone tell me how can I set ssh key ?

Thank You

Feb 4, 2020 in Git & GitHub by akhtar
• 38,260 points
933 views

1 answer to this question.

0 votes

Hi@akhtar,

First you have to generate key using below command.

$ ssh-keygen

Then you have to upload the public key in GitHub.

$ cat /root/.ssh/id_rsa.pub

Then copy the key in GitHub.

After adding just check using the below link

$ ssh -T git@github.com

Hope this will help you.

Thank You

answered Feb 4, 2020 by MD
• 95,460 points

Related Questions In Git & GitHub

0 votes
0 answers

How can I save username and password in Git?

I want to do a push and ...READ MORE

May 24, 2022 in Git & GitHub by Kichu
• 19,040 points
864 views
0 votes
1 answer

How to perform a sonarqube analysis from drone.io in github?

DRONE_PULL_REQUEST  env variable holds the pull request ...READ MORE

answered Jul 6, 2018 in Git & GitHub by DareDev
• 6,890 points
2,630 views
0 votes
1 answer

How merge works in Git & GitHub!!!??

Hi@Hasid, In Git & GitHub merge concept comes ...READ MORE

answered Jan 31, 2020 in Git & GitHub by MD
• 95,460 points
855 views
0 votes
0 answers

How to use p4merge tool in Git & GitHub?

Hi, Can someone tell me, how to use ...READ MORE

Jan 31, 2020 in Git & GitHub by akhtar
• 38,260 points
636 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,064 views
+2 votes
1 answer
0 votes
1 answer

How can I retrieve previous version data in Git & GitHub!!?

Hi@akhtar, You can use reset command to do ...READ MORE

answered Jul 19, 2020 in Git & GitHub by MD
• 95,460 points
4,865 views
0 votes
1 answer

How do I access my SSH public key?

Hi@akhtar, You can use the cat command in ...READ MORE

answered Jan 4, 2021 in Git & GitHub by MD
• 95,460 points
771 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP