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
if you are in a linux distribution store your ssh key in /.ssh and add github.com to /.ssh/known_hosts
/.ssh
/.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
git