Bug 319173

Summary: sftp does not use kwallet
Product: [Frameworks and Libraries] kio-extras Reporter: mimo
Component: SFTPAssignee: Andreas Schneider <asn>
Status: RESOLVED FIXED    
Severity: normal CC: adawit, ken
Priority: NOR    
Version First Reported In: 18.04.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mimo 2013-05-01 13:43:42 UTC
kioclient exec sftp://USER@XX.XX.XX used to bring up a dialog that allowed to tick "remember password"
For a number of versions kubuntu now this has stopped working on my desktop (but not my laptop). I cannot figure out what is causing this. I have created a blank account but it is exactly the same there. 
Using the ftp protocol the "remember password" shows up
Using the sftp command line client works

I have enabled debug logging but nothing there really:

kio_sftp(13215) kdemain: *** Starting kio_sftp
kio_sftp(13215) sftpProtocol::sftpProtocol: pid =  13215
kio_sftp(13215) sftpProtocol::sftpProtocol: debug =
kio_sftp(13215) sftpProtocol::setHost: "cstdevweb" @ "spot" : 0
kio_sftp(13215) sftpProtocol::closeConnection:
kio_sftp(13215) sftpProtocol::listDir: list directory:  KUrl("sftp://USER@XX.XX.XX")
kio_sftp(13215) sftpProtocol::openConnection: username= "USER" , host= "spot" , port= 0
kio_sftp(13215) sftpProtocol::openConnection: checking cache: info.username = "USER" , info.url = "sftp://USER@XX.XX.XX"
kio_sftp(13215) sftpProtocol::sftpOpenConnection: Creating the SSH session and setting options
kio_sftp(13215) sftpProtocol::sftpOpenConnection: Trying to connect to the SSH server
kio_sftp(13215) sftpProtocol::openConnection: Getting the SSH server hash
kio_sftp(13215) sftpProtocol::openConnection: Checking if the SSH server is known
kio_sftp(13215) sftpProtocol::openConnection: Trying to authenticate with the server
kio_sftp(13215) sftpProtocol::openConnection: Trying to authenticate with public key
kio_sftp(13215) sftpProtocol::openConnection: Trying to authenticate with keyboard interactive
kio_sftp(13215) sftpProtocol::authenticateKeyboardInteractive: name= ""  instruction= ""  prompts= 1
kio_sftp(13215) sftpProtocol::authenticateKeyboardInteractive: prompt= "Password: "  echo= "0"
kio_sftp(13215) sftpProtocol::sftpLogin: connected ? false username: old= "USER" new= "USER"
Comment 1 Dawit Alemayehu 2013-05-26 18:10:27 UTC
I cannot personally reproduce this. I get the "Remember password" checkbox. Are you usuing the same version on both your laptop and desktop computers ? Is KWallet disabled on your desktop computer ? If so, then you will never get the "Remember password" checkbox.
Comment 2 Dawit Alemayehu 2013-06-04 03:41:09 UTC
waiting for response to question in comment #1.
Comment 3 mimo 2013-06-04 10:03:27 UTC
As I mentioned, using the FTP protocol I get a "remember password" box. My kwallet is running and used by kmail and various akonadi services. 
Looking into my kwallet I can even see the password for the sftp account and server I'm trying to use.
Probably there is a weird (old) library somewhere I guess. But I really don't know. Here the output from ldd -v /usr/lib/kde4/kio_sftp.so

Thanks for looking into this
Comment 4 mimo 2013-06-04 10:03:53 UTC
(In reply to comment #3)
> As I mentioned, using the FTP protocol I get a "remember password" box. My
> kwallet is running and used by kmail and various akonadi services. 
> Looking into my kwallet I can even see the password for the sftp account and
> server I'm trying to use.
> Probably there is a weird (old) library somewhere I guess. But I really
> don't know. Here the output from ldd -v /usr/lib/kde4/kio_sftp.so
> 
> Thanks for looking into this

Forgot the link ;) http://pastebin.com/uvdMgCCR
Comment 5 Christoph Feck 2013-06-16 00:46:09 UTC
Dawit, does comment #3 provide the requested information? Please set the status.
Comment 6 Dawit Alemayehu 2013-06-16 03:23:40 UTC
(In reply to comment #5)
> Dawit, does comment #3 provide the requested information? Please set the
> status.

Yes, but I cannot reproduce this problem ; so I will put it back to UNCONFIRMED.
Comment 7 Ken Rushia 2013-08-13 22:17:14 UTC
Bug happens for me also, with KDE for Windows 4.10.2. As is detailed by OP, smb/ftp/webdavs all use kwallet, but sftp shows a password prompt with no "save" tickbox.

Some things that may be helpful:
1. I copied my ~/.kde/share/apps/remoteview/*.desktop files from another machine.
2. I originally ONLY installed Kate and its dependencies. I used sftp connections from within Kate before kwallet was installed. Afterwards I installed kwallet. It is possible that my smb/ftp/webdavs mounts weren't accessed prior to kwallet installation.
Comment 8 Andreas Schneider 2018-09-03 06:02:19 UTC
Should be fixed in the meantime, please reopen if this still is the case.