I've created the following RSA key (with passphrase):
ssh-keygen -t rsa -f rsa_foo
Now when adding the key in normal way,
ssh-add asks for the passphrase fine:
$ ssh-add rsa_foo Enter passphrase for rsa_foo: 12345
However when I'm loading the key through FIFO, it doesn't ask anymore:
$ mkfifo -m=600 fifo $ cat rsa_foo >fifo | ssh-add fifo
and it gives me the following error instead:
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
This works when RSA key file doesn't have passphrase.
How do I fix the above error in order so
ssh-add can ask the passphrase normally (or I could pass to it somehow)?
My goal is to load this RSA key using FIFO.