Re: Accessing SSH key path using SSH_ASKPASS and passwordstore

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

 



On Tue, 6 Oct 2020, Damien Miller wrote:

> Unfortunately the askpass convention is pretty old and baked-in to
> too many places to change radically. OTOH we could certainly harmonise

The unified prompt will work well enough for my purposes, and it lets
me keep my vault hierarchy clean, so that seems like a good change to
me.

Also I noticed my script's regex is not quite right. Should be:
"s/^.*\/\(.*[^']\)'\{0,1\}:.*$/\1/"

On Tue, Oct 6, 2020 at 10:07 AM Thorsten Glaser <t.glaser@xxxxxxxxx> wrote:

> In kwalletcli, I just use the full prompt string as “key”.
>
> (This does something like the thing the OP described, except
> for storing/retrieving the passwords from the KDE 3/4/5 wallet.)

Now that you mention it, that kind of turns things around in my mind.
It doesn't work too well with pass to have extraneous information in
the hierarchy if you still wish to peruse it in the CLI, but if the
prompts generated by the ssh tools could be toggled to a more machine
readable format ("key:/path/to/key" or something) through some sort of
configuration option, it would prevent having to change the API in a
drastic way but still enable interesting automation by ingesting the
entire prompt.

Considering my situation, however, it's probably not justified since I
can handle everything with a one-liner in my script. I just thought
I'd bring it up in case it's more relevant to interoperability in the
future. For now I'm pretty happy with the prompts being consistent as
per Damien's changeset.

Thanks,
John
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux