Closed cgrzemba closed 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?
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
Perhaps try the -O
flag for scp
?
Oh yeah, this works!
scp -O cgrzemba@code.illumos.org:hooks/commit-msg .git/hooks/ commit-msg 100% 2272 12.4KB/s 00:00
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