Create public and private keys using ssh-key-gen
1. go to your machine.
2. check if ssh key are available or not.
3. create/genrate new ssh key.
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
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
REF :
same procedure follow for git.
how do you access private git repository from jenkins.
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
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 :
same procedure follow for git.
how do you access private git repository from jenkins.
No comments:
Post a Comment