abiosoft / abiosoft/caddy-git

Caddy GIT does ignore ports in repo urls for host key

Đang mở
#69 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
206
Fork
42
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.