Problems with kio sftp in Dolphin/Konqueror

44

Solution 1

This is a known issue with Dolphin and ECDSA keys. OpenSSH in recent versions have moved to use ECDSA by default over RSA, and this works fine with most implementations that rely on OpenSSH's "known hosts" file.

Dolphin's kio_sftp module uses libssh instead of OpenSSH's own libraries, and that library appears to not support ECDSA keys. The workaround is detailed in the KDE bug report - remove the existing key, and either force OpenSSH to cache the RSA host key (an example command line is detailed in the bug report and below), or just use Dolphin to connect directly.

Because the KDE bug is resolved, but we still see the bug in Kubuntu 15.04, I've opened a bug on the Kubuntu KDE implementation.

Sample command to reset the host key:

ssh-keygen -f "$HOME/.ssh/known_hosts" -R server
ssh -o HostKeyAlgorithms=ssh-rsa user@server

Solution 2

As workaround you can use fish://yourserver instead of sftp and it'll work just great. Solution was taken from there: https://superuser.com/questions/299940/kubuntu-cant-add-new-ssh-network-folder

Share:
44

Related videos on Youtube

Arthur Robaeys
Author by

Arthur Robaeys

Updated on September 18, 2022

Comments

  • Arthur Robaeys
    Arthur Robaeys over 1 year

    I have a simple question.

    I've created a small test array with discount codes and their discounts. However, when I run the foreach, variable $code is 0, and everything is placed in $discount . I don't see my error in notation for accessing the key and value of the array?

      private function _handleDiscount() {
        $discountCodes = array(["AZERTYUIOP" => 8.00, "QSDFGHJKLM" => 10.00]);
        $_SESSION['cart']['total'] = $_POST['totalValue'];
        foreach($discountCodes as $code => $discount){
          if($_POST['discountCode'] === $code){
            $_POST['totalValue'] - $discount;
            $_SESSION['cart']['total'] = $_POST['totalValue'];
          }
        }
      }
    
    • Nigel Ren
      Nigel Ren over 4 years
      Should you be doing something with the value in $_POST['totalValue'] - $discount;?
    • brombeer
      brombeer over 4 years
      array(["AZERTYUIOP" => 8.00, "QSDFGHJKLM" => 10.00]); is creating two arrays, it should be array("AZERTYUIOP" => 8.00, "QSDFGHJKLM" => 10.00);
    • Arthur Robaeys
      Arthur Robaeys over 4 years
      Ah, thanks for that! I probably read the documentation wrong.
    • jeprubio
      jeprubio over 4 years
      You probably want to do $_SESSION['cart']['total'] = $_POST['totalValue'] - $discount; or $_POST['totalValue'] = $_POST['totalValue'] - $discount;
  • jjesse
    jjesse almost 9 years
    Thanks for posting this. It solved my issues just hadn't got a chance to test it. Marked it as a solution
  • int_ua
    int_ua almost 9 years
    Yes, the commands helped. FYI: it's not marked as a solution.
  • Guss
    Guss almost 9 years
    Its not a solution, its a workaround ;-) but yea, @jjesse: if you this is worth accepting as an answer, please click the checkmark. Thx.
  • Don't Panic
    Don't Panic over 4 years
    It's always helpful to explain why something should be changed, even if it's not a major change.