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 in Git & GitHub by akhtar
• 24,030 points
123 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 by MD
• 53,620 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,850 points
921 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 in Git & GitHub by akhtar
• 24,030 points
68 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 in Git & GitHub by MD
• 53,620 points
64 views
0 votes
1 answer

How to create branch in GitHub from my local Git repo?

Hi@akhtar, To sync your existing branch in GitHub, ...READ MORE

answered May 7 in Git & GitHub by MD
• 53,620 points
69 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
663 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 in Git & GitHub by MD
• 53,620 points
204 views
0 votes
1 answer

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

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

answered Jan 31 in Git & GitHub by MD
• 53,620 points
57 views