I want to load ssh key protected by passphrase from varible with ssh-add.
When I try to load it from file works well like this.
eval $(ssh-agent)
DISPLAY=1 SSH_ASKPASS="passwordfile" ssh-add id_rsa < /dev/null
Now I want to assign passphrase and the id_rsa to variables and use something like this:
eval $(ssh-agent)
DISPLAY=1 SSH_ASKPASS="$PASSPHRASE" ssh-add $ID_RSA < /dev/null
How I could achieve this?