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

The proposed changes for sshd_config seems to be unrelated to Gitea

This commit is contained in:
Alexandre Aubin 2021-08-16 19:18:43 +02:00 committed by GitHub
parent 33a6680031
commit 3280914252
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,14 +49,10 @@ Additional informations
### 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 Gitea:
If you want to use Gitea with ssh and be able to pull/push with you ssh key, you will need to add the `gitea` user in the ssh permission with this command:
```bash
PubkeyAuthentication yes
AuthorizedKeysFile /home/%u/.ssh/authorized_keys
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
```
sudo adduser gitea ssh.app
```
You also need to add your public key to your Gitea profile.
@ -68,11 +64,6 @@ 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:
```
sudo adduser gitea ssh.app
```
### Architecture