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,170 points
160 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,060 points

Related Questions In Git & GitHub

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
1,189 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,060 points
95 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,170 points
109 views
0 votes
1 answer

How to share images in GitHub from local system?

Hi@akhtar, You can follow the below steps to ...READ MORE

answered May 7, 2020 in Git & GitHub by MD
• 95,060 points
136 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
947 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 18, 2020 in Git & GitHub by MD
• 95,060 points
911 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 in Git & GitHub by MD
• 95,060 points
31 views