From de58418da69d309d7ad7a6268870ca2411137de30b11337f970a937516d96bf9 Mon Sep 17 00:00:00 2001 From: Andrey Karepin Date: Sat, 11 Oct 2014 07:28:34 +0000 Subject: [PATCH] Accepting request 254673 from home:WernerFink:branches:network - Ensure that ssh can use the ssh support of the gpg-agent (boo#899647) OBS-URL: https://build.opensuse.org/request/show/254673 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=86 --- openssh.changes | 5 +++++ ssh-askpass | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/openssh.changes b/openssh.changes index 3e2689e..41b7854 100644 --- a/openssh.changes +++ b/openssh.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 8 10:12:40 UTC 2014 - werner@suse.de + +- Ensure that ssh can use the ssh support of the gpg-agent (boo#899647) + ------------------------------------------------------------------- Mon Jul 21 15:58:09 UTC 2014 - p.drouand@gmail.com diff --git a/ssh-askpass b/ssh-askpass index 5d8616e..e76e836 100644 --- a/ssh-askpass +++ b/ssh-askpass @@ -24,6 +24,13 @@ if [ -z "$SESSION" ] ; then fi fi +if [ -n "$SSH_AUTH_SOCK" ] ; then + # Ensure that ssh can use the ssh support of the gpg-agent + case "$SSH_AUTH_SOCK" in + */S.gpg-agent.ssh) gpg-connect-agent /bye < /dev/null ;; + esac +fi + GNOME_SSH_ASKPASS="@LIBEXECDIR@/ssh/gnome-ssh-askpass" KDE_SSH_ASKPASS="@LIBEXECDIR@/ssh/ksshaskpass" X11_SSH_ASKPASS="@LIBEXECDIR@/ssh/x11-ssh-askpass"