1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitea_ynh.git synced 2024-09-03 20:36:22 +02:00

README.md: Clarify ssh authentication with key

Only managed to successfully `ssh -T gitea@[...]` with these two changes. 

Without them, I would just get:

```
gitea@[...]: Permission denied (publickey).
fatal: Could not read from remote repository.
```

Solved it thanks to this comment https://framagit.org/YunoHost-Apps/gitea_ynh/-/issues/18#note_707336
This commit is contained in:
boturon 2021-08-11 18:58:23 +00:00 committed by GitHub
parent 33a6680031
commit ff790febbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,13 @@ PasswordAuthentication no
UsePAM no
```
For users that—for [security reasons](https://yunohost.org/en/security#ssh-authentication-via-key)—disabled the admin password and now perform SSH authentication via key, keep `UsePAM yes` and add `AllowUsers gitea`:
```bash
UsePAM yes
AllowUsers gitea
```
You also need to add your public key to your Gitea profile.
If you use ssh on another port than 22, you need to add theses lines to your ssh config in `~/.ssh/config`: