abiosoft / abiosoft/caddy-git

Caddy GIT does ignore ports in repo urls for host key

未关闭
#69 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
206
派生
42
PR 合并指标
30 天内没有已合并 PR

描述

I recently encountered a little bug in the git plugin of yours.

When you specify the following service block in the caddy file:

git {
repo ssh://git@git.example.ch:7999/git/repo.git
key /etc/caddy/id_rsa
path /var/www/repo
}

It will try to connect to the correct port, but fetch the wrong SSH host key as it tried to fetch on port 22 (Which is caused the way ssh-keyscan handles ports as you have to pass the port by -p )

As a workaround:
Manually fetch the correct key and then put it into the known_hosts file generated by this plugin.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。