illumos / docs

The source for the illumos documentation site
https://illumos.org/docs
Mozilla Public License 2.0
31 stars 38 forks source link

gerrit.md: add scp port for download commit-msg hook #83

Closed cgrzemba closed 2 years ago

cgrzemba commented 2 years ago

The describted kind of download the commit-msg hook do not work on standard SSH port. It works with the port mentioned in Gerrit Documentation cmd-hook-commit-msg.txt

jclulow commented 2 years ago

This shouldn't be necessary. Our Gerrit SSH server runs on port 22 as well as 29418. What error do you see when you use port 22?

cgrzemba commented 2 years ago

scp -p cgrzemba@code.illumos.org:hooks/commit-msg .git/hooks/ subsystem request failed on channel 0 scp: Connection closed

But you are right, the problem is not the port, its seems it has to do with the firewall of our corporate network.

So I will close the PR

jclulow commented 2 years ago

Perhaps try the -O flag for scp?

cgrzemba commented 2 years ago

Oh yeah, this works!

scp -O cgrzemba@code.illumos.org:hooks/commit-msg .git/hooks/
commit-msg                                                                100% 2272    12.4KB/s   00:00