This page contains some common issues you can run into and their solutions.
If you are having issues with reaching your repositories over ssh
while the
Gitea web front-end and https
based git operations work fine, consider
looking at the following items.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
This error signifies that the server rejected your log in attempt, check the
following things:
@
) is spelled correctly.ssh git@myremote.example
to ensure that everything is set up.ssh
directory in the home directory of yourgit
user..ssh/authorized_keys
.Rewrite '.ssh/authorized_keys' file (for Gitea SSH keys)
on theIf you get a similar error without the public key part (shown below) then
authentication succeeded, but some other setting is preventing ssh from
reaching the correct repository.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
In this case, look into the following settings:
git
user has a usable shell set. You can verify thisgetent passwd git | cut -d: -f7
, chsh
can be used to modify this.gitea serv
command in .ssh/authorized_keys
uses the