5
1
I have an existing build.properties file that uses scp like this:
<scp todir="${linux.user}@${linux.site}:@{todir}" keyfile="${ssh.keyfile}" passphrase="${ssh.passphrase}" trust="yes" verbose="@{verbose}">
<filestocopy />
</scp>
The documentation for that command is here: https://ant.apache.org/manual/Tasks/scp.html
I would like to move to ssh-agent and eliminate the passphrase. Some people who are using this have configured their ssh to NOT use passwords and leave passphrase blank.
One alternative is to use http://www.jcraft.com/jsch-agent-proxy/ , but I found this 1.5 year old question that says it is not supported yet:
https://stackoverflow.com/questions/19684309/can-ant-using-ssh-encrypted-private-key-from-pageant
This is used in many ant scripts so I need a plan that would allow me to use ssh-agent while still allowing others to continue with their method.
I am on Windows 7 trying to scp files to Linux. I have a Pageant compatible ssh-agent: KeePass2/KeeAgent.