From a6aeb7be11247529add72de6303cc9369ca4d9cd Mon Sep 17 00:00:00 2001 From: Kanan <46992731+kkerimov@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:37:39 +0400 Subject: [PATCH] Update SshPlugin.java for SSH kex Algorithms Added new KEX algorithms to support more SSH devices diffie-hellman-group1-sha1 diffie-hellman-group14-sha1 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256 --- android/src/main/java/flutter/ssh2/SshPlugin.java | 1 + 1 file changed, 1 insertion(+) 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();