Hi There,
I’ve been trying to setup Unity Cloud Build to connect to a private git repo that I have setup on my own server. I’ve read a lot of forum posts and various configuration settings to make sure that I’m doing this correctly, but I’m still getting the “Repo is not accessible. Please check your URL and repo settings.” error.
Here are the steps I’ve taken:
- Setup Git on the server. Including creating the base version of the repo and making sure I can access it remotely.
- Added the provided SSH key to .ssh/authorized_keys for the linux git user from Unity Cloud (I also did the same thing on another machine to make sure that I was able to SSH in successfully.)
- Made sure I was able to connect to the repo using “git ls-remote <servername/path/to/repo>”
The URLs I’ve tried to connect with Unity Cloud are similar to:
ssh://@/<path/to/repo>
@/<path/to/repo>
:@/<path/to/repo>
@:22/<path/to/repo>
ssh://@:22/<path/to/repo>
ssh://@/<path/to/repo>.git
@/<path/to/repo>.git
:@/<path/to/repo>.git
Most of these work when I try to connect directly from my computer with my authorized_key, but Unity Cloud is unable to connect.
I need to make sure that the repo is private, so SSH was my first choice. Any help at this point would be very welcome.