Problems with kio sftp in Dolphin/Konqueror
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
Related videos on Youtube
Arthur Robaeys
Updated on September 18, 2022Comments
-
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
is0
, 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 over 4 yearsShould you be doing something with the value in
$_POST['totalValue'] - $discount;
? -
brombeer over 4 years
array(["AZERTYUIOP" => 8.00, "QSDFGHJKLM" => 10.00]);
is creating two arrays, it should bearray("AZERTYUIOP" => 8.00, "QSDFGHJKLM" => 10.00);
-
Arthur Robaeys over 4 yearsAh, thanks for that! I probably read the documentation wrong.
-
jeprubio over 4 yearsYou probably want to do
$_SESSION['cart']['total'] = $_POST['totalValue'] - $discount;
or$_POST['totalValue'] = $_POST['totalValue'] - $discount;
-
-
jjesse almost 9 yearsThanks for posting this. It solved my issues just hadn't got a chance to test it. Marked it as a solution
-
int_ua almost 9 yearsYes, the commands helped. FYI: it's not marked as a solution.
-
Guss almost 9 yearsIts 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 over 4 yearsIt's always helpful to explain why something should be changed, even if it's not a major change.