I’m using a script that executes
eval `ssh-agent`
ssh-add
which prompts you to input your SSH passphrase. Is it possible to input the passphrase from the script? The goal of this is to open connection to git repo whenever I open GitBash without having to constantly input my passphrase. I know putting passphrase in a script is terrible security, but I really don’t care. I’m doing for testing.
If you’re going to do that you’d be better off just not using a passphrase on the key. In which case you wouldn’t even need to use
ssh-agent. You can change or remove a passphrase from an existing key withssh-keygen -p.