Since OpenSSH9, they have deactivated SCP support by default:
"This release switches scp(1) from using the legacy scp/rcp protocol to using the SFTP protocol by default."
This has the effect, that users cannot download the commit message hook anymore using the provided command line:
$ scp -p -P 29418 us...@gerrit.host.com:hooks/commit-msg .
Enter passphrase for key '/home/rbrand/.ssh/id_ecdsa':
subsystem request failed on channel 0
scp: Connection closed
When called using the "-O" option ("Use the legacy SCP protocol for file transfers instead of the SFTP protocol.") works however.
Tested on 3.4.1 and 3.5.1
Will this be fixed in 3.6 because the MINA SSHD server seems to have been updated as well?