Can Ant using SSH encrypted private key from Pageant?

753 Views Asked by At

ANT do have sshexec and scp task that may read encrypted ssh private key by passing password to the task. This isn't secure at all.

The Pageant from Putty stores private key that may used for SSH authentication anytime. Is there a way to make ANT and Pageant work together for SSH public key authentication?

1

There are 1 best solutions below

0
On

ANT uses jsch as it's ssh implementation. This project has recently created a ssh agent proxy, but I don't believe it's integrated into the ANT task yet.