// in order to break the link between SshClient and BouncyCastle
try {
if (SecurityUtils.isBouncyCastleRegistered()) {
class KeyPairProviderLoader implements Callable<KeyPairProvider> {
public KeyPairProvider call() throws Exception {
return new FileKeyPairProvider(files.toArray(new String[files.size()]), new PasswordFinder() {
public char[] getPassword() {
try {
System.out.println("Enter password for private key: ");
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String password = r.readLine();