On 11.06.25 12:19, Götz Waschk wrote:
scp -v gives this at the end:

Authenticated to gerrit.openafs.org ([18.9.44.50]:29418) using "publickey".
debug1: pkcs11_del_provider: called, provider_id = (null)
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: filesystem full
debug1: Sending subsystem: sftp
subsystem request failed on channel 0
Connection closed

Hi,

I have found out the source of the problem: this only happens if I am using openssh 8.7p1 from RHEL9. In that version of SSH, the SCP protocol is deprecated and is using SFTP instead, see here:
https://www.redhat.com/de/blog/openssh-scp-deprecation-rhel-9-what-you-need-know

I have tested the scp command with openssh 8.0p1 from RHEL8, it is using the SCP protocol. See this output from scp -v:

Authenticated to gerrit.openafs.org ([18.9.44.50]:29418).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LC_MEASUREMENT = de_DE.UTF-8
debug1: Sending env LC_PAPER = de_DE.UTF-8
debug1: Sending env LC_MONETARY = de_DE.UTF-8
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending env LC_NUMERIC = de_DE.UTF-8
debug1: Sending env XMODIFIERS = @im=ibus
debug1: Sending env LC_TIME = de_DE.UTF-8
debug1: Sending command: scp -v -f hooks/commit-msg
Sink: C0755 4694 commit-msg


So the gerrit server must be configured to support the SFTP subsystem or newer SSH clients will fail when using the scp command.

Regards,
Götz Waschk


--
Götz Waschk                            ° Phone:  +49 33762 77169
Deutsches Elektronen-Synchrotron DESY  ° E-Mail: goetz.was...@desy.de
Platanenallee 6
15738 Zeuthen Germany

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to