Skip to content
Skip to Content

Any Git server

Add a single repository from any Git server, over SSH with a read-only deploy key that OpenPanel makes, or over HTTPS with a username and token.

For a Git server that is not one of the services OpenPanel knows, or when you want to give OpenPanel one repository only, add the repository itself. Each such account is one repository.

Git over SSHGit over HTTPS
CredentialsA deploy key OpenPanel makes for this repositoryA username and a password or token; none for a public repository
AccessRead-only, this repository onlyWhatever the credentials allow
Private networkPossiblePossible

Git over SSH

Enter the repository

In Organization settings → Git accounts, choose Add Git account → Git over SSH, and enter the Repository URL in one of these forms:

[email protected]:team/app.git
ssh://[email protected]:2222/team/app.git

Use the ssh:// form when SSH runs on a port other than 22. For a server inside your private network, turn on Reached through the private network (see Private Git servers). Choose Make the key.

Add the deploy key to the repository

OpenPanel makes an Ed25519 key for this repository, saves the account, and shows the key's public half with a copy button. Add it to the repository as a read-only deploy key:

HostWhere
GitHubThe repository's Settings → Deploy keys → Add deploy key; leave Allow write access off.
GitLabThe project's Settings → Repository → Deploy keys; leave Grant write permissions off.
Gitea, Forgejo, CodebergThe repository's Settings → Deploy keys → Add deploy key; leave Enable write access off.
BitbucketThe repository's Repository settings → Access keys → Add key. Access keys are read-only.

Check it

Choose I added it, check now. When the host accepts the key, the console says "The repository answered", with its default branch and number of refs.

Choose Later to check it another time: the account stays Waiting until the key works. The key is in the account's menu under Deploy key whenever you need it again.

OpenPanel records the Git server's host key at the first check and refuses a server that later answers with another one: "The host's identity changed since it was first checked." If the Git server was reinstalled, remove the account and add it again.

The console saysWhat to do
The host did not accept OpenPanel's key. Add the deploy key to the repository (read-only), then check again.Add the deploy key, or check that you added it to this repository.
The repository was not found, or the deploy key has no access to it.Check the repository path and the deploy key.
… did not answer on port …Check the host and port, and that the Git server accepts SSH from the internet (or from your private network).

Git over HTTPS

  1. In Organization settings → Git accounts, choose Add Git account → Git over HTTPS.
  2. Repository URL: the repository's clone URL, for example https://git.example.com/team/app.git. Use http:// only for a server that does not serve HTTPS, such as one inside your private network.
  3. Username and Password or token: credentials that can read the repository. Prefer a token made for OpenPanel over your own password. For a public repository, leave both empty.
  4. Choose Add account.

OpenPanel asks the repository for its branches, first without credentials and then with them when the server asks for them, as Git itself does. If the check fails, nothing is saved.

The console saysWhat to do
The repository is private. Enter a username and a password or token.Add credentials.
The repository did not accept this username and password or token.Check them; a token may need read access to the repository.
No repository answered at this address. Check the URL.Copy the clone URL again; it usually ends in .git.
This address does not answer like a Git repository over HTTPS.Use the clone URL, not the repository's web page.
The repository answered with a redirect to …. Enter the address it redirects to.OpenPanel follows no redirects: enter the final address.