Bug#831600: ksshaskpass: After upgrade from 5.6.5 to 5.7.0 it stopped working

2016-07-17 Thread Diederik de Haas
Control: severity -1 minor

On zondag 17 juli 2016 21:20:56 CEST you wrote:
> As the README.Debian file specified, this bug was actually a user error.

Adjusting severity accordingly

signature.asc
Description: This is a digitally signed message part.


Bug#831600: ksshaskpass: After upgrade from 5.6.5 to 5.7.0 it stopped working

2016-07-17 Thread Diederik de Haas
Control: severity -1 important

On zondag 17 juli 2016 19:02:09 CEST Diederik de Haas wrote:
> Starting it from Konsole gave a somewhat unsettling result as it dumped
> the password in plaintext to stdout ... 

Lowering the severity as it looks like I was using it incorrectly, but keeping 
it to important as dumping a password in plaintext still doesn't sound right.

> One thing I noticed when inspecting the debs from 5.6.5 and 5.7.0 was
> that the /usr/share/application/org.kde.ksshaskpass.desktop file was
> present in 5.6.5 but not in 5.7.0.
> I guess that that explains the disappearance from krunner.
> 
> When I run 'ssh-add' from Konsole thing seem to work just fine. I think
> it's getting the password from kwallet (as before) and when I ssh into
> another machine I'm not asked (again) for the password of my key.

According to the README you should use it sth like the following.
Put the following in a script:

#!/bin/sh
export SSH_ASKPASS=/usr/bin/ksshaskpass
# Add default key
ssh-add

And then add/link that script in System Settings -> Autostart to be started at 
session start.

I had removed that from my system as it meant that I often got 2 'competing' 
password dialog boxes at session start and that was annoying. One was from 
KMail/Kontact and the other from ksshaskpass and starting ksshaskpass manually 
through krunner as described earlier I didn't have that problem.
But it could (very well) be that it was due to kwallet from 'KDE4' and 'KDE5' 
were asking for my password.

But now I have the latest KMail (5.2.2), so they'd both use kwallet from 
'KDE5' and after having created the above script and linking it in Autostart, 
I only got 1 password dialog box and both KMail and (k)ssh(askpass) are happy.
I'm now also getting that ksshaskpass wants to open kwallet to retrieve the 
password, while I was getting a separate dialog before, probably some fallback 
mechanism.

signature.asc
Description: This is a digitally signed message part.


Bug#831600: ksshaskpass: After upgrade from 5.6.5 to 5.7.0 it stopped working

2016-07-17 Thread Diederik de Haas
Package: ksshaskpass
Version: 4:5.7.0-1
Severity: grave
Justification: renders package unusable

Today I made a new attempt at upgrading ksshaskpass to 5.7.0 after the
previous try failed and it failed again.
After logging in I (pretty much) always start ksshaskpass through krunner 
and that makes it so that I can ssh into several machines using keys. 
After the upgrade to 5.7 it doesn't appear in krunner anymore.

Starting it from Konsole gave a somewhat unsettling result as it dumped
the password in plaintext to stdout ... and when trying to ssh into 
another machine it still asked for my key password.
$ ksshaskpass &
[1] 3863
$ Pass a valid window to KWallet::Wallet::openWallet().

[1]+  Doneksshaskpass

One thing I noticed when inspecting the debs from 5.6.5 and 5.7.0 was
that the /usr/share/application/org.kde.ksshaskpass.desktop file was
present in 5.6.5 but not in 5.7.0. 
I guess that that explains the disappearance from krunner.

When I run 'ssh-add' from Konsole thing seem to work just fine. I think
it's getting the password from kwallet (as before) and when I ssh into
another machine I'm not asked (again) for the password of my key.

If you need more info, let me know.

Cheers,
  Diederik

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), 
(101, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ksshaskpass depends on:
ii  libc6 2.23-1
ii  libkf5coreaddons5 5.23.0-1
ii  libkf5i18n5   5.23.0-1
ii  libkf5wallet-bin  5.23.0-1
ii  libkf5wallet5 5.23.0-1
ii  libkf5widgetsaddons5  5.23.0-1
ii  libqt5core5a  5.6.1+dfsg-3
ii  libqt5widgets55.6.1+dfsg-3
ii  libstdc++66.1.1-9
ii  openssh-client1:7.2p2-5

Versions of packages ksshaskpass recommends:
ii  kwalletmanager  4:16.04.2-1

ksshaskpass suggests no packages.

-- no debconf information