Page MenuHomePhabricator

Gerrit commit-msg hook scp: subsystem request failed on channel 0
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • OpenSSH_9.1
  • scp -v -p -P29418 <user>@gerrit.wikimedia.org:hooks/commit-msg .

What happens?:

...truncated...
Authenticated to gerrit.wikimedia.org using "publickey".
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: Sending environment.
debug1: channel 0: setting env LANG = "en_US.UTF-8"
debug1: channel 0: setting env LC_ALL = "en_US.UTF-8"
debug1: Sending subsystem: sftp
subsystem request failed on channel 0
scp: Connection closed
debug1: Sending subsystem: sftp
subsystem request failed on channel 0
scp: Connection closed

What should have happened instead?:

Authenticated to gerrit.wikimedia.org .
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: scp -v -p -f hooks/commit-msg
Sink: C0755 2272 commit-msg
commit-msg                                                                                                                   100% 2272    25.9KB/s   00:00
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 2264, received 4432 bytes, in 0.6 seconds
Bytes per second: sent 3999.3, received 7829.0
debug1: Exit status 0

Software version: Gerrit 3.5.5 + OpenSSH9.0+

Other information (browser name/version, screenshots, etc.):