Connecting with sftp to server who uses legacy ssh-dss

I have been trying to connect to a server using sftp from Dolphin. I unfortunately get the following error message:

kex error : no match for method server host key algo: server [ssh-dss], client [ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256]

The problem might be that the server uses the legacy ssh-dss for connections, which is disabled by openSSH. But while with ssh you may add the flag

`-oHostKeyAlgorithms=+ssh-dss`

to enable it’s use again, yet I can’t find any option to do the same in Dolphin.
Is there any way to do this?

I’m on NixOS 24.05 with KDE Plasma 6.0.0 from the unstable branch.

sftp is provided by kio-extras that default compiles using the libssh, that deprecated ssh-dss algo a few years ago.

You might be able to add the option to your ~/.ssh/config file for the host.

Host somehost.example.org
	KexAlgorithms +diffie-hellman-group1-sha1

Ref: