From 603ecae3097ceb9bde001c39ecddfe9ffa0246bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 17 Jul 2022 16:21:01 +0200 Subject: [PATCH] Update DISCLAIMER.md --- doc/DISCLAIMER.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 5ecd64d..f4416b6 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,10 +1,10 @@ ## Notes on SSH usage -If you want to use Gitea with SSH and be able to pull/push with you SSH key, your SSH daemon must be properly configured to use private/public keys. Here is a sample configuration of `/etc/ssh/sshd_config` that works with Gogs: +If you want to use Gitea with ssh and be able to pull/push with you ssh key, your ssh daemon must be properly configured to use private/public keys. Here is a sample configuration of `/etc/ssh/sshd_config` that works with Gitea: ```bash PubkeyAuthentication yes -AuthorizedKeysFile %h/.ssh/authorized_keys +AuthorizedKeysFile /home/%u/.ssh/authorized_keys ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no @@ -19,6 +19,16 @@ Host domain.tld port 2222 # change this with the port you use ``` +You will also need to add the gitea user in the ssh permission with this command: +```bash + +sudo adduser gitea ssh.app +``` + ## Private Mode Actually it's possible to access to the Git repositories by the `git` command over HTTP also in private mode installation. It's important to know that in this mode the repository could be ALSO getted if you don't set the repository as private in the repos settings. + +## Remove Gitea + +Due of the backup core only feature the data directory in `/home/yunohost.app/gitea` is not removed unless using thr purge option: `sudo yunohost app remove gitea --purge`