The approach looks good to me. Thanks @stuarthendren! Looking at how the [jsch driver](https://github.com/jclouds/jclouds/blob/master/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/SessionConnection.java#L172-L180) manages the credentials I'd say it will already work. Anyway, could you try using it, just to make sure all the ssh drivers are fixed in this issue?
--- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/761#issuecomment-108131628
