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.

  • Toes♀@ani.social
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    9 months ago

    Does modifying ~/.ssh/config to contain the exception work?

    Host somehost.example.org HostKeyAlgorithms +ssh-dss

    Note, that whatever infrastructure you’re working with urgently like a hole in the head needs to be patched. This isn’t optional, at this point it’s serious negligence. You wouldn’t leave the office unlocked because the door got too old to lock? This is just as unacceptable, this needs addressed like today.

    • samuelinox@lemm.eeOP
      link
      fedilink
      avesta
      arrow-up
      1
      ·
      edit-2
      8 months ago

      Hi, I tried that but it didn’t work unfortunately.

      Believe me, I tried to make them upgrade, but apparently the entire infrastructure runs on an ancient OpenVMS version and there is not much they can do without changing the entire thing (as they said)