Thursday 5 May 2016

Create public and private keys using ssh-key-gen to connect repository.

Create public and private keys using ssh-key-gen

1. go to your machine.

2. check if ssh key are available or not.
cmd : ls -al ~/.ssh

3. create/genrate new ssh key.
cmd : ssh-keygen -t rsa -C "voice@voice.com"

4)  go to .ssh directory, open new created   id_rsa.pub file, copy the content and save at you local, so we can to other repo
ex : github
ssh dir :  /home/../.ssh

5) open github and paste key in ssh section of github setting and save.

6) now come to machine make a ssh call to git
ex : ssh -vT git@github.com


REF :
1. github
2. video








same procedure follow for git.
how do you access private git repository from jenkins.

No comments:

Post a Comment