- Gitea 1.22.6
- Windows server 2019.
- app.ini below, running the internal SSH server
No other SSH server involved, I’m trying to keep this as simple as possible.
Running interactively at present after deleting previous config with the same issue and starting again.
I have created a user, set and verified an SSH key and I’m getting the dreaded " Permission denied (publickey)." error.
Questions
- Obviously, “How do I fix this”?
- Is there an authorized_keys file somewhere that I can check? The keys are there in the admin UI and I can’t see them being written out to the filesystem
- Does the internal SSH server use a file to store authorised keys?
- What am I missing? OK, that’s the first one re-phrased
App.ini
APP_NAME = Gitea: Git with a cup of tea
RUN_USER = zcraig
WORK_PATH = C:\Gitea
RUN_MODE = prod
[database]
DB_TYPE = sqlite3
HOST = 127.0.0.1:3306
NAME = gitea
USER = gitea
PASSWD =
SCHEMA =
SSL_MODE = disable
PATH = C:\Gitea\data\gitea.db
LOG_SQL = false
[repository]
ROOT = C:/Gitea/data/gitea-repositories
[server]
SSH_DOMAIN = git.xxx.com
START_SSH_SERVER = true
DISABLE_SSH = false
DOMAIN = git.xxx.com
HTTP_PORT = 3000
ROOT_URL = http://git.xxx.com:3000/
APP_DATA_PATH = C:\Gitea\data
SSH_PORT = 22
LFS_START_SERVER = true
LFS_JWT_SECRET = 6h4ejzRYTWcuBm_Q5wKVz48Z7kp_Yy3pviX7WxcPaFg
OFFLINE_MODE = true
[lfs]
PATH = C:/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 = false
[session]
PROVIDER = file
[log]
MODE = console
LEVEL = debug
ROOT_PATH = C:/Gitea/log
ENABLE_SSH_LOG = true
[repository.pull-request]
DEFAULT_MERGE_STYLE = merge
[repository.signing]
DEFAULT_TRUST_MODEL = committer
[security]
INSTALL_LOCK = true
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3Mzc1OTk0MTd9.MS5mNWByWfBJdXiCIBD26CXAPBETSxTrlBjV1CzXRD0
PASSWORD_HASH_ALGO = pbkdf2
[oauth2]
JWT_SECRET = HLWhfGqhUyGWKlcWGId4T_8ATEA_4kJclWzas8jN568