mirror of
https://github.com/YunoHost-Apps/gitea_ynh.git
synced 2024-09-03 20:36:22 +02:00
fix
This commit is contained in:
parent
b5297253e2
commit
bff47b9bb7
2 changed files with 24 additions and 0 deletions
24
doc/ADMIN.md
Normal file
24
doc/ADMIN.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
## 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:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
AuthorizedKeysFile %h/.ssh/authorized_keys
|
||||||
|
ChallengeResponseAuthentication no
|
||||||
|
PasswordAuthentication no
|
||||||
|
UsePAM no
|
||||||
|
```
|
||||||
|
|
||||||
|
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`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
Host domain.tld
|
||||||
|
port 2222 # change this with the port you use
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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.
|
Loading…
Add table
Reference in a new issue