Displaying 1 result from an estimated 1 matches for "id_ed25519_somekey".
2020 Oct 06
2
Accessing SSH key path using SSH_ASKPASS and passwordstore
...th to the key. Using this knowledge I just have my
script infer the path using sed.
This strategy works, but I noticed that when you call ssh (with
AddKeysToAgent set to 'yes') vs ssh-add, the prompts are slightly
different:
$ ssh user at host
Enter passphrase for key '/home/user/.ssh/id_ed25519_somekey':
$ ssh-add /home/user/.ssh/id_ed25519_somekey
Enter passphrase for /home/user/.ssh/id_ed25519_somekey:
Notice the single quotes around the path in the prompt when calling
ssh. I'm not sure if that's a bug with regard to consistency. I was
able to modify the regex to account for this...