Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-09 Thread Kristian Fiskerstrand
On 10/05/2016 09:35 PM, Andre Heinecke wrote: >> I really think this ought to be handled in OpenSSH. > Exactly. I wrote a mail to openssh-unix-dev as you suggested to ask about > that. Let's see :-) For record purposes, this is http://lists.mindrot.org/pipermail/openssh-unix-dev/2016-October/0354

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-05 Thread Andre Heinecke
Hi, On Wednesday 05 October 2016 13:46:51 Daniel Kahn Gillmor wrote: > > You may use > > > > gpgconf --create-socketdir > > > > to create the directory w/o running any daemon. It is a NOP if the > > directory already exists. Yes, that works but it's still a bit cludgy I'd like to have it wor

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-05 Thread Daniel Kahn Gillmor
On Wed 2016-10-05 03:42:21 -0400, Werner Koch wrote: > On Tue, 4 Oct 2016 20:49, aheine...@intevation.de said: > >> My current workaround is to connect first and start dirmngr on the remote >> machine (to get the socketdir created and used). And then connect with ssh >> socket forwarding. This i

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-05 Thread Stephan Beck
Oh, just seen Werner's answer :-) Well, I had a good time reading the mentioned docs ;-) Cheers, Stephan Stephan Beck: > Hi, > > Daniel Kahn Gillmor: >> Hi Andre-- >> >> On Tue 2016-10-04 14:49:00 -0400, Andre Heinecke wrote: >> >>> On Tuesday 04 October 2016 11:26:59 Daniel Kahn Gillmor wrote

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-05 Thread Stephan Beck
Oh, just seen Werner's answer :-) Well, I had a good time reading the mentioned docs ;-) Cheers, Stephan Stephan Beck: > Hi, > > Daniel Kahn Gillmor: >> Hi Andre-- >> >> On Tue 2016-10-04 14:49:00 -0400, Andre Heinecke wrote: >> >>> On Tuesday 04 October 2016 11:26:59 Daniel Kahn Gillmor wrote

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-05 Thread Stephan Beck
Hi, Daniel Kahn Gillmor: > Hi Andre-- > > On Tue 2016-10-04 14:49:00 -0400, Andre Heinecke wrote: > >> On Tuesday 04 October 2016 11:26:59 Daniel Kahn Gillmor wrote: But if I am not logged in or there is no gnupg process running. systemd autodeletes /var/run/user//gnupg this causes the

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-05 Thread Werner Koch
On Tue, 4 Oct 2016 20:49, aheine...@intevation.de said: > My current workaround is to connect first and start dirmngr on the remote > machine (to get the socketdir created and used). And then connect with ssh > socket forwarding. This is a bit clunky to use. You may use gpgconf --create-so

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-04 Thread Daniel Kahn Gillmor
Hi Andre-- On Tue 2016-10-04 14:49:00 -0400, Andre Heinecke wrote: > On Tuesday 04 October 2016 11:26:59 Daniel Kahn Gillmor wrote: >> > But if I am not logged in or there is no gnupg process running. systemd >> > autodeletes /var/run/user//gnupg this causes the remote forward of >> > the >> > So

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-04 Thread Andre Heinecke
Hi, On Tuesday 04 October 2016 11:26:59 Daniel Kahn Gillmor wrote: > > But if I am not logged in or there is no gnupg process running. systemd > > autodeletes /var/run/user//gnupg this causes the remote forward of > > the > > Socket to fail because the directory for the socket does not exist and S

Re: Agent forwarding failure when the socketdir was autodeleted

2016-10-04 Thread Daniel Kahn Gillmor
On Tue 2016-10-04 08:03:06 -0400, Andre Heinecke wrote: > Using GnuPG 2.1.15 I'm trying to SSH into a remote machine with OpenSSH 6.7 > as > described under: > > https://wiki.gnupg.org/AgentForwarding > > The problem is that the remote system uses systemd so /var/run/user/ > exits and GnuPG wil

Agent forwarding failure when the socketdir was autodeleted

2016-10-04 Thread Andre Heinecke
Hi, Using GnuPG 2.1.15 I'm trying to SSH into a remote machine with OpenSSH 6.7 as described under: https://wiki.gnupg.org/AgentForwarding The problem is that the remote system uses systemd so /var/run/user/ exits and GnuPG will use it. But if I am not logged in or there is no gnupg process r