This forum has been archived. All content is frozen. Please use KDE Discuss instead.

sftp kio does not work

Tags: None
(comma "," separated)
User avatar
cleary
Registered Member
Posts
32
Karma
0

Re: sftp kio does not work

Wed May 25, 2011 6:58 am
Ok, I messed up when I created the first "blank" slate - I rsynced the ssh folder across and brought known_hosts with it.
So I nuked the home dir and started again -

Second time round:
1. copy keys only - chown appropriately
2. cli ssh to host - requested to add key to known_hosts
3. login successfully
4. open dolphin, sftp://user@host:port - got error

Nuke home dir, start again -

Third time round:
1. copy keys only - chown appropriately
2. open dolphin, sftp://user@host:port - requested to add key to known_hosts
3. login successfully(!)
4. cli ssh to host
5. login successfully
6. re-open dolphin, sftp://user@host:port
7. login successfully

So some success, just by switching the order of proceedings around.
So I logged into my normal account,
* deleted known_hosts altogether
* did not register my key with an agent
* open dolphin, sftp://user@host:port - requested to add key to known_hosts
* logged in successfully
* register my key with the agent, reopen dolphin/cli and everything works as expected.

Which is a winner, but there is still an issue that the format of the key being inserted into known_hosts by the cli client is different to that put in by kio/dolphin.

Code: Select all
$ diff -Nrup known_hosts.cli known_hosts.kio
--- known_hosts.cli     2011-05-25 16:54:40.027235098 +1000
+++ known_hosts.kio     2011-05-25 16:55:37.198520358 +1000
@@ -1,2 +1,2 @@
-|1|9y0v5KIEvwUwUsNxLdtxnMQVWkw=|4Ll/ICTD603Z7nvrllUcDpcPDE8= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHJ/wLslpCdSXUwlUhzNPCYhjEUC+zUVqPtS97z4R5YkO6pXcyBNLjGKQdSbDNFpTDXnROOxx1bGrWgxbHlEcIA=
-|1|86eZPnsY+XuMBA301JoLJLTP7gM=|ebzlADPzjJsSo38q5P4nDwbaulU= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHJ/wLslpCdSXUwlUhzNPCYhjEUC+zUVqPtS97z4R5YkO6pXcyBNLjGKQdSbDNFpTDXnROOxx1bGrWgxbHlEcIA=
+[cleary.host.hidden]:port ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC2IdIpm5RCxb4yQfdlMDdZn6Ib1dmD+ktcE9L/QAE2jx0NlIWTATR8+XgukRl2n6sF6U7OkjggewHl3E3eliLYCKMp6ecRuMvkMMfg5u3UnHBIWEKKDQjvh/oqn2tMnzsFAMkgnMN03f0zRp2/nrP49jFWEITB4lnVtIPTejOYeD/UACtCCQPc0jKKx7fkm+pXVmdS4thxHWSpNc5MtQFzKnjTX0TfOsOKCfFzQX6yGxOEcS7kJS96FUO0+R6oQ4BQGr9GY5lRuDKQa3um6Mv09kWDpdZjdHym/pMkATEG8vWiliUg3I5mv5dK50Pbra+Yok6uFWzKoeFgOmEnWRtp
+[cleary.host.hidden]:port ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC2IdIpm5RCxb4yQfdlMDdZn6Ib1dmD+ktcE9L/QAE2jx0NlIWTATR8+XgukRl2n6sF6U7OkjggewHl3E3eliLYCKMp6ecRuMvkMMfg5u3UnHBIWEKKDQjvh/oqn2tMnzsFAMkgnMN03f0zRp2/nrP49jFWEITB4lnVtIPTejOYeD/UACtCCQPc0jKKx7fkm+pXVmdS4thxHWSpNc5MtQFzKnjTX0TfOsOKCfFzQX6yGxOEcS7kJS96FUO0+R6oQ4BQGr9GY5lRuDKQa3um6Mv09kWDpdZjdHym/pMkATEG8vWiliUg3I5mv5dK50Pbra+Yok6uFWzKoeFgOmEnWRtp


Can you recreate this issue? Is it worth a bug report (and who with)?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: sftp kio does not work

Thu May 26, 2011 5:22 am
It seems that the sftp KIO slave does not support the newer form of encoding known hosts. Please do file a bug report.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
cleary
Registered Member
Posts
32
Karma
0

Re: sftp kio does not work

Thu May 26, 2011 6:35 am
Done - thanks for your help :)
https://bugs.kde.org/show_bug.cgi?id=274170
miroslavv
Registered Member
Posts
4
Karma
0

Re: sftp kio does not work

Sat Mar 09, 2013 7:38 am
I had the same problem and just found the answer here:
http://superuser.com/questions/299940/k ... ork-folder

All you need to do is recreate key for the host:
Code: Select all
$ ssh-keygen -R <hostname>


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]