Re: ssh ask pass on F34 not working on entry

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


José Abílio Matos 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.

ssh-agent on f34/plasma-wayland runs a little different than prior releases.

Prior releases run ssh-agent as part of the xinit process, but not too 
surprising, that mechanism is for X only.

In f34, I worked with fedora's openssh maintainer to run ssh-agent as a 
systemd user service (for plasma wayland sessions), per

(This method inspired by other distros that already do this)

Unfortunately, systemd services cannot themselves export environment, so we 
needed one more piece
which contains just:
if [ "$SSH_AUTH_SOCK" = "" ]; then

So that SSH_AUTH_SOCK env variable gets set for the plasma wayland session.

It's quite possible this new mechanism may make some legacy setups not work 
anymore, especially if those mechanisms try to access ssh-agent before 
SSH_AUTH_SOCK gets set (workaround there is to just set SSH_AUTH_SOCK 
yourself to match the env snippet above).

Hope this helps...

-- Rex

kde mailing list -- kde@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kde-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct:
List Guidelines:
List Archives:
Do not reply to spam on the list, report it:

[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