![]() Alternatively use the ssh-keyscan command to create known_hosts. This will create a file called known_hosts in /home/go/.ssh. Choose yes and continue with the cloning. Most SCMs provide the command to clone with SSH when you access the repository on the browser.Ī prompt appears when you execute the git clone command for the first time. Once the public key has been added to your account, try accessing a private repository by doing git clone on the private repository using the SSH protocol.Id_rsa.pub is the public key that needs to be added to your SCM account.įollow the instructions provided below to add a new ssh key for your respective provider: ![]() Id_rsa corresponds to the private key, which you will later provide GoCD to access the private repository with. I have Mac running Catalina, with docker-engine 19.03.8, Compose 1.24 The following is my docker-compose file version: '3.7' services: platform: containername: platform build: context. ![]() Ssh-keygen -t rsa -b 4096 -C "something to identify this key: like an email address"Īfter executing the above command, you will notice that there are 2 files created in /home/go/.ssh called id_rsa and id_rsa.pub. Hi All, I have been having serious troubles to get ssh-agent forwarding with my docker-compose installation. It involves mounting your host ssh agent.
0 Comments
Leave a Reply. |