abiosoft / abiosoft/caddy-git

Caddy GIT does ignore ports in repo urls for host key

Offen
#69 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
206
Forks
42
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.