diff --git a/android/src/main/java/flutter/ssh2/SshPlugin.java b/android/src/main/java/flutter/ssh2/SshPlugin.java index 8c7afd3..dcc5f6f 100644 --- a/android/src/main/java/flutter/ssh2/SshPlugin.java +++ b/android/src/main/java/flutter/ssh2/SshPlugin.java @@ -276,6 +276,7 @@ private void connectToHost(final HashMap args, final Result result) { Properties properties = new Properties(); properties.setProperty("StrictHostKeyChecking", "no"); + properties.setProperty("kex", "diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256"); session.setConfig(properties); session.connect();