Add a cli flag to use SSH agent, when possible.

This reverts commit 45121a5e9672cc7fa396c5b9bac2bdd037553030.