**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
**Other informations**:
@hashar mentions that there is Upstream task about this: https://bugs.chromium.org/p/gerrit/issues/detail?id=15944