Please make sure GIT is installed and path is configured in Jenkins. To configure path have a look at the link Jenkins could not run git
I am able to connect private repository using credentials in Jenkins. To connect using ssh please follow the youtube link Private repositories, GitHub & BitBucket