I am working on a shell script performing recurring tasks of
- git commit
- git push
- mvn release:prepare
- mvn release:perform
in a couple of paths of a JAVA software project.
Now each of these commands asks for my rsa token password at least once, sometimes even multiple times: "Enter passphrase for key /..../.ssh/id_rsa:"
Is there a way to get around this? It would be OK if I had to enter the password once per script execution.
One boundary condition: I cannot use "spawn, expect, send"
A complication: I run the script in a CENTOS7 shell which is called on a windows10 machine via X-Win32. I would not like to log on to the native Linux Desktop environment.
Note: this is a copy of the same question which I posted in askubuntu - which was an off topic (https://askubuntu.com/questions/1178707/how-to-avoid-neccessity-to-re-enter-password-during-schell-script-execution)