Bug 236470 - Bug: SFTP://user@host doen't use SSH Keys, fish://user@host does
Summary: Bug: SFTP://user@host doen't use SSH Keys, fish://user@host does
Status: RESOLVED UPSTREAM
Alias: None
Product: kio
Classification: Unmaintained
Component: sftp (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Schneider
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 20:53 UTC by Jeffrey
Modified: 2010-05-10 22:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey 2010-05-05 20:53:34 UTC
Version:           1.4 (using 4.4.3 (KDE 4.4.3), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.32-3-686

Upgraded from KDE 4.3.4 to 4.4.3 in Debian Sid.  In Dolphin I have many shortcuts to sftp://user@host.domain.com/ which used to accurately ask for my SSH Key Passphrase, but no longer.  Now I am prompted for my username and password for the remote host.

Accessing with fish://user@host.domain.com does function properly, asking for passphrase.

I am not running any SSH Agents nor am I storing these passphrases in KWallet.  I used to be prompted for passphrase with each connection, but no longer.

Thanks for KDE!
Comment 1 Frank Reininghaus 2010-05-08 12:47:37 UTC
Thanks for the bug report! I'll reassign to KIO/sftp. Maybe related to bug 236836.
Comment 2 Andreas Schneider 2010-05-10 11:08:44 UTC
Thanks for the bug report. I think you have defined the identify files in your ~/.ssh/config file. Could you send me the file that I can look at it.

Could you tell me which version of libssh you're using?
Comment 3 Jeffrey 2010-05-10 16:51:22 UTC
> I think you have defined the identify files in your
> ~/.ssh/config file. Could you send me the file that I can look at it.
shell$ ls ~/.ssh/config
ls: cannot access /home/eljefe/.ssh/config: No such file or directory

But in the system's /etc/ssh/ssh_config file, I do have this set up:
   IdentityFile ~/.ssh/id_rsa
   IdentityFile ~/.ssh/dsa.home
   IdentityFile ~/.ssh/id_dsa
   IdentityFile ~/.ssh/id_rsa_SECURE
   IdentityFile ~/.ssh/client_rsnapshot


> Could you tell me which version of libssh you're using?
shell$ aptitude show libssh2-1
Package: libssh2-1
State: installed
Automatically installed: yes
Version: 1.2.5-1

Thanks,
€l ]€f€
Comment 4 Jeffrey 2010-05-10 21:31:16 UTC
Copying the file /etc/ssh/ssh_config to ~/.ssh/config seems to have it working now, but I would still expect that the sftp:// KIO uses the system's settings (/etc/ssh/ssh_config) in addition to user settings (~/.ssh/config)

Thanks for KDE!

€l ]€f€
Comment 5 Jeffrey 2010-05-10 21:33:22 UTC
> seems to have it working now
...except that I get prompted for the key's passphrase with every directory change
Comment 6 Andreas Schneider 2010-05-10 21:48:05 UTC
I have created a fix that it remembers the password for the url lately. I have to check if this is in 4.4.3.
Comment 7 Andreas Schneider 2010-05-10 21:56:10 UTC
I have created a ticket for the initial bug at http://dev.libssh.org/ticket/80 I'm improving this code at the moment. This should be fixed in the next libssh release.

Please open a new bug report that the kio always prompts for the passphrase of the key. This needs to be address in KDE.
Comment 8 Jeffrey 2010-05-10 22:19:08 UTC
> Please open a new bug report that the kio always prompts for the passphras
Done, here at https://bugs.kde.org/show_bug.cgi?id=237162

Thanks again