SFTP not supported by Gerrit (SCP not supported anymore by OpenSSH 9)

1,444 views
Skip to first unread message

Matthias Keller

unread,
May 20, 2022, 6:10:27 AM5/20/22
to Repo and Gerrit Discussion
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?

Thomas Broyer

unread,
May 23, 2022, 6:36:28 AM5/23/22
to Repo and Gerrit Discussion
Fwiw, some of our users encountered this today, and I just created https://bugs.chromium.org/p/gerrit/issues/detail?id=15944 (before thinking about checking here and seeing your message)

Nicholas Hardison

unread,
Jun 20, 2022, 6:56:22 PM6/20/22
to Repo and Gerrit Discussion
We have also encountered this on a rhel9 client, even though it is still running openssh 8.7

Reply all
Reply to author
Forward
0 new messages