Closed
Description
- Gitea version (or commit ref): 1.12.3
- Git Server version: 2.26.2
- Operating system: DSM 6.2.3-25426 Update 2 (x64)
- 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
As this issue, I cannot clone, pull / push via SSH Gitea on my Synology
I did all the steps described in the ticket 5497, but I have this error :
`
git clone ssh://[email protected]:7999/xxxxxx/project-example.git
Clonage dans 'project-example'...
Permission denied, please try again.
fatal: Impossible de lire le dépôt distant.
Veuillez vérifier que vous avez les droits d'accès
et que le dépôt existe.
`
But when i try to clone by HTTP mode, it's working perfectly.
What I have done :
I installed Gitea on my Synology by following these steps :
- Create .spk file with https://github.com/flipswitchingmonkey/gitea-spk
- Install MariaDB 10, Git Server, PHPMyAdmin, Web Station and Gitea spk on my Synology
- I created my MySQL Database called "gitea" and created User mysql called "gitea"
- I configured Gitea during install process with my private domain and custom HTTP and SSH ports.
- I configured SSH port on my Synology so that it's identical to the one indicated in gitea
- I copied / pasted the public SSH key from my local machine in Gitea UI profile.
- I applied rights on /usr/local/gitea/gitea/.ssh (700) and /usr/local/gitea/gitea/.ssh/authorized_keys (600)
- I runed "Update the '.ssh/authorized_keys' file with gitea SSH keys"
- I added /gitea in /etc/passwd after /var/packages/Gitea/target
- I changed /sbin/nologin by /bin/sh in /etc/passwd
- I checked wheter PubkeyAuthentication is enabled in /etc/sshd_config
- I appended gitea to the administrators group in /etc/group
Here my app.ini :
...
[server]
SSH_DOMAIN = domain.local
DOMAIN = domain.local
HTTP_PORT = 8080
ROOT_URL = https://domain.local/
DISABLE_SSH = false
SSH_PORT = 7999
LFS_START_SERVER = true
LFS_CONTENT_PATH = /usr/local/gitea/gitea/data/lfs
LFS_JWT_SECRET = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OFFLINE_MODE = false
START_SSH_SRVER = true
BUILTIN_SSH_SERVER_USER =
SSH_LISTEN_PORT = %(SSH_PORT)s
SSH_CREATE_AUTHORIZED_KEYS_FILE = true
...
Metadata
Metadata
Assignees
Labels
No labels