abiosoft / abiosoft/caddy-git

Caddy GIT does ignore ports in repo urls for host key

オープン
#69 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。