shaqian / flutter_ssh

SSH and SFTP client for Flutter
https://pub.dartlang.org/packages/ssh
MIT License
117 stars 83 forks source link

Allow using both private key and password #62

Open diptaparna opened 3 years ago

diptaparna commented 3 years ago

Some servers require a private key (along with its passphrase) followed by another password for authentication. Currently, this functionality is not available. This is easily possible by adding the following line of code after this line in SshPlugin.java (in case of Android) - password = keyPairs.containsKey("password") ? keyPairs.get("password").toString(): "";