Hi all,
I follow the instruction to install gitea in docker on Windows but ssh not work.
After I login gitea and set up my ssh key.
I try to create a test repository and clone it over ssh
Then failed, error message is
kex_exchange_identification: Connection closed by remote host
My host has no ssh service and port 22 is usable.
So I directly use port 22 forward to docker’s port 22
This is my docker yml file
version: "2"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
ports:
- "10090:3000"
- "22:22"
and gitea app.ini
[server]
APP_DATA_PATH = /data/gitea
ROOT_URL = http://localhost:3000/
DOMAIN = localhost
HTTP_PORT = 3000
SSH_DOMAIN = localhost
DISABLE_SSH = false
SSH_PORT = 22
SSH_LISTEN_HOST = 0.0.0.0
SSH_LISTEN_PORT = %(SSH_PORT)s
LFS_START_SERVER = true
LFS_CONTENT_PATH = /data/git/lfs
LFS_JWT_SECRET = bTOzDcwA_u_KXo8PZHWBFEpvJZn3i6psvFNxy3vQ8Gk
OFFLINE_MODE = false