Closed
Description
- Gitea version (or commit ref): f5be13e
- Git version: Doesn't matter
- Operating system: Any
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
After setting up gitea on Docker using a user called "gitea", creating a user and adding its public key, cloning fails with the Permission denied (publickey)
error.
I looked into this and found something strange - in /etc/ssh/sshd_config
, the AllowedUsers
directive showed giteaea
instead of gitea
. In fact, every time I restarted the container, the user gained another "ea" at the end - so it went to giteaeaea
etc. Changing the directive back to gitea
manually doesn't help, because during startup it changes to giteaea
.
My workaround: I copied /etc/ssh/sshd_config
from the container to the host, and bound it into the container, setting the :ro
flag so it would be immutable.