I\'ve an automatic building service which download from a git private repository. The problem is that when it tries to clone repository it need to provide the password, beca
You need to create the authorized_keys
file under the .ssh
folder of the user under which you are going to connect to the repository server. For example, assuming you use username buildservice
on repo.server
you can run:
cd ~buidservice
mkdir ./ssh
cat id_rsa.pub >> .ssh/authorized_keys
Then you have to check the following things:
That corresponding id_rsa
private key is presented in builservice@build.server:~/.shh/id_rsa
.
That fingerprint of repo.server is stored in the buildservice@build.server:~/.ssh/known_hosts
file. Typically that will be done after the first attempt of ssh
to connect to the repo.server
.