Git authentication in Chef

前端 未结 6 1541
眼角桃花
眼角桃花 2020-12-14 02:11

When deploying an application with Chef, I\'ve got the code base set to be cloned from a private github repository with the following resource:

git \'/mnt/ap         


        
6条回答
  •  感情败类
    2020-12-14 02:35

    if you are in a linux distribution store your ssh key in /.ssh and add github.com to /.ssh/known_hosts

    You can add github.com to known_hosts using the following command

    ssh-keyscan -H github.com >> /.ssh/known_hosts

    After doing this you can clone your repo using git resource of chef

提交回复
热议问题