FS#70188 - Sftp subsystem variable is misconfigured in openssh

Attached to Project: Arch Linux
Opened by Mich (linuxthe5th) - Saturday, 27 March 2021, 19:29 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 28 March 2021, 01:16 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The sftp subsystem path is invalid, making the user unable to connect via sftp. Ssh is still usable.
The issue can be fixed by changing
"Subsystem sftp /usr/lib/openssh/sftp-server"
to
"Subsystem sftp /usr/lib/ssh/sftp-server"
in /etc/ssh/sshd_config and restarting sshd using systemctl.
Sshd logs included in sftp-daemon.log and sftp client logs included in sftp-client.log.

Additional info:
Version 8.5p1-1
File "/etc/ssh/sshd_config" line 116

Steps to reproduce:
Install openssh on a machine. Use sftp to connect to said machine.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 28 March 2021, 01:16 GMT
Reason for closing:  Not a bug
Comment by Jonas Witschel (diabonas) - Saturday, 27 March 2021, 20:24 GMT
In the default /etc/ssh/sshd_config configuration file shipped by the Arch Linux package, the option is correctly configured, see line 109 in the current openssh 8.5p1-1 package:

Subsystem sftp /usr/lib/ssh/sftp-server

I am not sure where you got the configuration with "/usr/lib/openssh/sftp-server" from, I don't think Arch has ever shipped sftp-server in this directory or a sshd configuration where this would have been the case.

Loading...