sftp-server incorrectly defined in sshd_config (and a workaround)


Not sure exactly when this happened but I used to be able to sftp into my Tumbleweed laptop, but when I tried today it does not connect

After a brief search, I found that the path to sftp-server is


However, in /etc/ssh/sshd_config it is incorrectly defined, as:

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

This can be fixed by amending the path, as below:

Subsystem     sftp    /usr/libexec/ssh/sftp-server


If you look carefully, you will probably find that you have a file “/etc/ssh/sshd_config.rpmnew” which has the change in it.

The idea is that you are supposed to compare “sshd_config” with “sshd_config.rpmnew” and merge in the changes. It is done this way, so as to not overwrite other changes you have made to “sshd_config”.

I’ll note that the “diff” command is useful for comparing the two versions of the file.

After updating Tumbleweed, you can run the command “rpmconfigcheck” to list any config files that might need to be merged.