This page contains some common seen issues and their solutions.
For issues reaching repositories over
ssh while the gitea web front-end, but
https based git repository access works fine, consider looking into the following.
Permission denied (publickey). fatal: Could not read from remote repository.
This error signifies that the server rejected a log in attempt, check the following things:
@) is spelled correctly.
.sshdirectory in the system user’s home directory.
.ssh/authorized_keys. Try to run
Rewrite '.ssh/authorized_keys' file (for Gitea SSH keys)on the Gitea admin panel.
The following is an example of a missing public SSH key where 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:
gitsystem user has a usable shell set
getent passwd git | cut -d: -f7
chshcan be used to modify this.
gitea servcommand in
.ssh/authorized_keysuses the correct configuration file.