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
• 1,440 points
43 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
• 2,750 points

Related Questions In Git & GitHub

0 votes
0 answers

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

Hi, I accidentally commit in a wrong version. ...READ MORE

Feb 3 in Git & GitHub by akhtar
• 1,440 points
22 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,850 points
606 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
• 1,440 points
25 views
0 votes
1 answer

Can I programmatically access gitlab secrets hash?

The newer versions of gitlab do support ...READ MORE

answered Mar 29, 2018 in Git & GitHub by DareDev
• 6,850 points
90 views
+13 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,400 points
352 views
0 votes
1 answer
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
• 2,750 points
16 views
0 votes
2 answers

How do I install Git on CentOS?

Hi, If you want to install Git 1 ...READ MORE

answered Feb 4 in Git & GitHub by MD
• 2,750 points
52 views