**Steps to replicate the issue** (include links if applicable):
* Go to any repository on Gerrit (example: https://gerrit.wikimedia.org/r/admin/repos/mediawiki/extensions/BlockAndNuke,general)
* Choose SSH as a protocol
* Copy full command from "Clone with commit-msg hook" and paste it in terminal on macOS (default Terminal application or other alternative)
**What happens?**:
Cloning works, but SCP part of command fails with:
```
debug1: Sending subsystem: sftp
subsystem request failed on channel 0
```
**What should have happened instead?**:
Command should be executed without any error.
**Software version** (skip for WMF-hosted wikis like Wikipedia):
* Gerrit 3.5.4
* macOS version: Ventura 13.2.1
* Version of OpenSSH: OpenSSH_9.0p1
* Version of LibreSSL library: LibreSSL 3.3.6
**Other informations**:
@hashar mentions that there is Upstream task about this: https://bugs.chromium.org/p/gerrit/issues/detail?id=15944
#upstream references:
https://groups.google.com/g/repo-discuss/c/5tcDQzRYMeM
[[ https://bugs.chromium.org/p/gerrit/issues/detail?id=15944 | Issue 15944: scp command for retrieving commit-sh hook fails with OpenSSH 9.0 ]]
[[ https://bugs.chromium.org/p/gerrit/issues/detail?id=16705 | Issue 16705: Always use HTTP to download commit-msg hook ]]
And the patch https://gerrit-review.googlesource.com/c/plugins/download-commands/+/359823