Hi there!
I have just installed gitea in the proxmox LXC.
My client is: Windows 10, VSCode 1.82.2
My gitea user was created as system without any shell
adduser --system --group --disabled-password --home /etc/gitea gitea
My app.ini are:
root@giteahome:/etc/gitea# cat app.ini
APP_NAME = Gitea: home repos
RUN_USER = gitea
WORK_PATH = /var/lib/gitea
RUN_MODE = prod
[database]
DB_TYPE = sqlite3
HOST = 127.0.0.1:3306
NAME = gitea
USER = gitea
PASSWD =
SCHEMA =
SSL_MODE = disable
PATH = /var/lib/gitea/data/gitea.db
LOG_SQL = false
[repository]
ROOT = /var/lib/gitea/data/gitea-repositories
[server]
PROTOCOL=https
REDIRECT_OTHER_PORT=true
CERT_FILE = /etc/gitea/cert.pem
KEY_FILE = /etc/gitea/key.pem
SSH_DOMAIN = giteahome.local
DOMAIN = giteahome.local
HTTP_PORT = 443
ROOT_URL = https://giteahome.local/
APP_DATA_PATH = /var/lib/gitea/data
DISABLE_SSH = false
SSH_PORT = 22
LFS_START_SERVER = true
LFS_JWT_SECRET = _ft6y02cCPMpAesXVZEpdvRJ41N0y49EyZLtLPO17Pc
OFFLINE_MODE = false
[lfs]
PATH = /var/lib/gitea/data/lfs
[mailer]
ENABLED = false
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost
[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true
[cron.update_checker]
ENABLED = true
[session]
PROVIDER = file
[log]
MODE = console
LEVEL = info
ROOT_PATH = /var/lib/gitea/log
[repository.pull-request]
DEFAULT_MERGE_STYLE = merge
[repository.signing]
DEFAULT_TRUST_MODEL = committer
[security]
INSTALL_LOCK = true
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2OTQ4NDg4ODl9.ISq4fTvS_7MjZrIdzkCP9dg9-vCa-z36zGZ465AIF14
PASSWORD_HASH_ALGO = pbkdf2
[oauth2]
JWT_SECRET = OLo1siL37tJgYjiIRYa46a7itaAFCXi8cT1jUk6ihD0
I also have dns record in my mikrotik like
giteahome.local 192.168.33.41 + self signed certificate
I also work without any problem with http
but when i try git clone command
PS C:\Users\Admin\Desktop\git_test\testgitea\testrepo2> git clone ssh://gitea@giteahome.local/alexey/testrepo.git
Cloning into 'testrepo'...
fatal: protocol error: bad line length character: This
i have this error:
fatal: protocol error: bad line length character: This
Try to add this options in sshd_config but have no result
UsePAM yes
AllowUsers gitea
try to use windows WSL, git for desktop and vscode , i have the same result.
I try to use this:
ssh {host} git-receive-pack {repoPath}
but my gitea have no ssh access so it doesn’t work.
I will be glad to any advice