Sshfs and sftp and other network issues after upgrading to leap 16.0

I have recently upgraded some systems from leap 15.6 to 16.0, in one of them upgraded using opensuse-migration-tool I detected that the ssh server worked but i was not capable of mounting some dir using sshfs of this server from other computer. I found the problem, sshfs didn’t work and sftp did not work either, the problem was that in my leap 15.6

/etc/ssh/sshd_config has this line

subsystem sftp /usr/lib/ssh/sftp-server

But the sftp server now is not there, but

fernando@Elnath:~> ls /usr/lib/ssh/sftp-server
ls: cannot access '/usr/lib/ssh/sftp-server': No such file or directory
fernando@Elnath:~> ls /usr/libexec/ssh/sftp-server
/usr/libexec/ssh/sftp-server

And the solution is changing the line in /etc/ssh/sshd_config from

/usr/lib/ssh/sftp-server

to

subsystem sftp /usr/libexec/ssh/sftp-server

So i let it there if anyone has the same problem… but checking in other computer I also upgraded i see

fernando@Elnath:~> sftp localhost
(fernando@localhost) Password: 
Connected to localhost.
sftp> 

So this one works, and wondering why I see there is not /etc/ssh/sshd_config at all. So maybe the problem was caused for and old configuration? Is sshd_config deprecated?

I have had also other issue in all systems I upgraded with the network card, my ehernet devices where all called eth0, upgrading and rebooting let eth0 as the configured device but not working, and another device ens32 not configured, so no network working … and in a remote upgrade is a mess. But if after the upgrade and before rebooting I rename the eth0 device to ens32, when rebooting the network continue working.

Release notes regarding networknames:

Perhaps the solution is to remove “/etc/ssh/ssh_config”.

In Leap 16.0, it is using “/usr/etc/ssh/ssh_config” in addition to any drop-in files. If you have “/etc/ssh/ssh_config” that overrides the provided configuration.

Here, I do not have “/etc/ssh/ssh_config”. I possibly removed it. But I do have some drop-in files:

-rw-r--r-- 1 root root 92 Jul 24 15:48 /etc/ssh/sshd_config.d/01-auth.conf
-rw-r--r-- 1 root root 98 May  8  2024 /etc/ssh/sshd_config.d/02-keys.conf

removing ssh_config in the client ?

I see that in the computer in which sftp continue working without making any changes there are no ssh_config nor sshd_config in /etc/ssh

Try:

diff /usr/etc/ssh/ssh_config /etc/ssh/ssh_config

That will tell you what you are overriding from the installed configuration.

Then anything that actually needs to be overridden can be put into drop in file in “/etc/ssh/ssh_config.d”. And then remove “/etc/ssh/ssh_config”

Next do the same with “sshd_config”.

You will end with a system that is easier to manage.

2 Likes