| Summary: | The system close connection of terminal in LXQt when setting ssh-askpass | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | papoteur <yvesbrungard> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED OLD | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | cooker, doktor5000, marja11, zen25000 |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | |||
|
Description
papoteur
2016-05-13 09:04:29 CEST
What is the output of rpm-qa | grep openssh-askpass There has been an issue, for which I forgot to file a bug report, see https://ml.mageia.org/l/arc/dev/2016-03/msg00000.html that still seems valid. Please check: /etc/profile.d/90ssh-askpass.sh if it contains: export SSH_ASKPASS=/usr/libexec/openssh/ssh-askpass then try replacing that line with export SSH_ASKPASS=/usr/lib64/ssh/ssh-askpass (s/64// if needed ;-) ) CC:
(none) =>
marja11 Thanks Marja, rpm -qa | grep openssh-askpass openssh-askpass-common-7.2p2-2.mga6 lxqt-openssh-askpass-0.10.0-5.mga6 openssh-askpass-7.2p2-2.mga6 The new export doesn't work. I get directly * Error: Problem adding; giving up in the console I just opened. (In reply to papoteur from comment #2) > Thanks Marja, > rpm -qa | grep openssh-askpass > openssh-askpass-common-7.2p2-2.mga6 > lxqt-openssh-askpass-0.10.0-5.mga6 > openssh-askpass-7.2p2-2.mga6 > > The new export doesn't work. I get directly > * Error: Problem adding; giving up > in the console I just opened. Sorry :-( What you had before must have been better for lxqt-openssh-askpass. Can you revert it? Do you get auto-disconnected, too, when connecting to git in a VT? Assignee:
bugsquad =>
doktor5000 @Marja, My directory /usr/lib64/ssh is void, thus it is not surprising that the new export doesn't work. It seems that something has changed since the topic you cited. However, I don't think that the problem is related. The askpass works when the console is launched. Assignee:
doktor5000 =>
bugsquad
Marja Van Waes
2016-05-14 19:23:35 CEST
Assignee:
bugsquad =>
guillomovitch
Florian Hubold
2016-05-16 14:19:48 CEST
CC:
(none) =>
doktor5000 (In reply to Marja van Waes from comment #1) > What is the output of > > rpm-qa | grep openssh-askpass rpm -qa | grep openssh-askpass openssh-askpass-common-7.2p2-1.mga6 openssh-askpass-qt4-1.0.1-9.mga6 > /etc/profile.d/90ssh-askpass.sh > > if it contains: > > export SSH_ASKPASS=/usr/libexec/openssh/ssh-askpass > > then try replacing that line with > > export SSH_ASKPASS=/usr/lib64/ssh/ssh-askpass This is what I was suggesting in the initial post that started the mailinglist thread, back in 2015-09-18. When I do the change, it works. But the change that broke it, came from the openssh-askpass-common package. (which comes from the openssh src.rpm) CC:
(none) =>
cooker The change in #1 has worked for me but now (today) does not. There is no longer the askpass dialog on boot/re-login and on launching konsole (plasma) there is just: * Error: Problem adding; giving up CC:
(none) =>
zen25000 Is there any other workaround for this? That bug report is very confusing, mixing issues related to SSH itself, the SSH agent, and SSH agent passphrase-handling user interfaces... comment #1: it is perfectly normal to have automated SSH session expiry, that's a server setting, just check with your server admin first before assuming it is an SSH issue comment #2: yes, there was an issue with the install path of openssh-askpass-qt4 binary, but this was reported and fixed elsewere comment #3: check if you have an agent running: [guillaume@netchaiev ~]$ ssh-add -l Could not open a connection to your authentication agent. In this case, there is no agent running, no need to blame the passphrase popup windows (which is a distinct optional software component) Sorry, the last item was related to comment #7, not comment #2. (In reply to Guillaume Rousse from comment #9) > Sorry, the last item was related to comment #7, not comment #2. Thanks, the output of ssh-add -l was the clue [baz@localhost ~]$ ssh-add -l The agent has no identities. Running "ssh-add" seems to have fixed things, although logging out/in did not cause askpass dialog to ask for PW. I will see what happens on reboot. I can now run a script that accesses mageia svn without being prompted repeatedly for a password. :) Back to square one after re-boot (no askpass dialog appeared): * Error: Problem adding; giving up [baz@localhost ~]$ ssh-add -l The agent has no identities. [baz@localhost ~]$ ssh-add Enter passphrase for /home/baz/.ssh/id_rsa: Identity added: /home/baz/.ssh/id_rsa (/home/baz/.ssh/id_rsa) [baz@localhost ~]$ ssh-add -l 2048 SHA256:XXXXXXXXXXXXX/XXXXXXXXXXXXXX /home/baz/.ssh/id_rsa (RSA) [baz@localhost ~]$ keychain * keychain 2.8.2 ~ http://www.funtoo.org * Found existing ssh-agent: 5017 [baz@localhost ~]$ [baz@localhost ~]$ rpm -qa|grep askpass openssh-askpass-common-7.2p2-2.mga6 openssh-askpass-7.2p2-2.mga6 openssh-askpass-qt4-1.0.1-12.mga6 [baz@localhost ~]$ Any ideas? The whole point of keychain, as far as I remember, was to keep your credentials available after checkout, for cron tasks for example. Apart of it, I don't see any added value nowadays, just an additional potential source of troubles in this mix. Just get rid of it, and see if the problem persists. This is what I did to solve it, after a pointer in a comment in bug 18812 about a similar problem, which I gather really is the same bug as this. Uninstall openssh-askpass-common, which will uninstall all packages providing an ssh-askpass command. usually one or two packages. Then I checked the content in /var/lib/alternatives/ssh-askpass and /var/lib/alternatives/ssh-askpass Then ran «update-alternatives --remove ssh-askpass » and the path to any askpass commands listed in the alternatives file. Do the same for bssh-askpass: «update-alternatives --remove bssh-askpass» and the path listed in the bssh-askpass alternatives file. Then installed openssh-askpass-qt4, and everything worked again. (In reply to Johnny A. Solbu from comment #13) > Then I checked the content in /var/lib/alternatives/ssh-askpass and > /var/lib/alternatives/ssh-askpass Baah, stupid typo. :-) One of the files should be /var/lib/alternatives/bssh-askpass (In reply to Johnny A. Solbu from comment #13) > This is what I did to solve it, after a pointer in a comment in bug 18812 > about a similar problem, which I gather really is the same bug as this. > > Uninstall openssh-askpass-common, which will uninstall all packages > providing an ssh-askpass command. usually one or two packages. > > Then I checked the content in /var/lib/alternatives/ssh-askpass and > /var/lib/alternatives/ssh-askpass > > Then ran «update-alternatives --remove ssh-askpass » and the path to any > askpass commands listed in the alternatives file. > Do the same for bssh-askpass: «update-alternatives --remove bssh-askpass» > and the path listed in the bssh-askpass alternatives file. > After doing the above in /var/lib/alternatives/ssh-askpass I have: auto /usr/lib64/ssh/ssh-askpass /usr/lib64/seahorse/seahorse-ssh-askpass 15 and in /var/lib/alternatives/bssh-askpass I have: auto /usr/bin/ssh-askpass /usr/lib64/seahorse/seahorse-ssh-askpass 15 /usr/libexec/openssh/qt4-ssh-askpass 50 Does any of that look right? > Then installed openssh-askpass-qt4, and everything worked again. Nothing changed for me :\ I will try removing the packages and both alternative files to see if they get re-created correctly. (In reply to Barry Jackson from comment #15) > > Nothing changed for me :\ > > I will try removing the packages and both alternative files to see if they > get re-created correctly. That worked - it is now working correctly after a log-out/in. I removed openssh-askpass-common Re-named /var/lib/alternatives/ssh-askpass and /var/lib/alternatives/bssh-askpass to effectively remove them. Installed openssh-askpass-qt4 ...and it works :) Thanks Johnny - that has been a real pain! (In reply to Guillaume Rousse from comment #12) > The whole point of keychain, as far as I remember, was to keep your > credentials available after checkout, for cron tasks for example. Apart of > it, I don't see any added value nowadays, just an additional potential > source of troubles in this mix. Just get rid of it, and see if the problem > persists. I really have no idea how all this ties together, but without keychain, askpass does not ask for PW, with it I am asked for PW as desktop appears. Hello, I come back with this problem that I filed at first, which is not a ssh connection problem but that the terminal window closes itself after some time. I encounter this problem today in a Plasma session. I think it's a new Virtual machine, but not sure. I have no more openssh. Konsole has been closed without asking anything. :( According to comment#18, this is not an openssh issue. Source RPM:
openssh =>
(none) Closing this report as OLD, because there was no more action in it since over 9 months ago and _mostly_ because it is too confusing with all the comments about openssh in it, that are unrelated to the original issue. Please file separate reports (if they don't already exist) for any remaining issues. Status:
NEW =>
RESOLVED |