I have two servers, A and B. A has the repo and can ssh to B. B is a new server I want to have the repo, but cannot ssh to A. I’ve tried copying the repo, create a remote to push, git clone with a -u… any suggestions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way which’ll set B up as a remote to A, would be to install gitosis on B and then push the repo from A to B.
For more on gitosis, see http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way. If you’re using git but not gitosis, you’re missing out!