Re: ssh ask pass on F34 not working on entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/21/21 6:10 PM, Robert-André Mauchin wrote:
On 4/15/21 11:57 PM, Neal Gompa wrote:
On Thu, Apr 15, 2021 at 4:53 PM José Abílio Matos <jamatos@xxxxxxxx> wrote:

For a long time I have a script in ~/.config/autostart-scripts/ksshaskpass

#!/bin/sh
export SSH_ASKPASS=/usr/bin/ksshaskpass
ssh-add xxxxx_key < /dev/null

For F34 this is not working out of the box.

That is after entering the plasma session using ssh always asks for the pass
phrase.
On the other hand if I run the last line directly, after the startup stage,
then the agent is added and it works from there.

It almost looks like that kwallet it is not opened when the autostart script
runs.


I've been doing this with a systemd user unit. There's some good
detail on how to make and use systemd user units on the Arch Wiki:
https://wiki.archlinux.org/index.php/systemd/User


Would you mind sharing your user service file for this?

Best regards,

Robert-André

I've used:

~/.config/systemd/user/ssh-add.service
[Unit]
Description=ssh-add service
Requires=ssh-agent.service
After=ssh-agent.service

[Service]
ExecStart=ssh-add -q %h/.ssh/id_rsa

[Install]
WantedBy=xdg-desktop-autostart.target

with:

~/.config/environment.d/60-ssh-add.conf
export SSH_ASKPASS='/usr/bin/ksshaskpass'
export GIT_ASKPASS='/usr/bin/ksshaskpass

and it works. Let me know if there is a better way to do it.

_______________________________________________
kde mailing list -- kde@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kde-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kde@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux