aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-04-15 18:44:15 +0000
committerKenny Root <kenny@the-b.org>2009-04-15 18:44:15 +0000
commitf03be9c1085a4f43e1c6529925e1b90d250225f4 (patch)
treee4d90aee6a020cd94626549d9d47c80dc3ef5ac6 /src
parent303f859f96971df46c3f9660f76ed2d7ce4d8a2d (diff)
downloadconnectbot-f03be9c1085a4f43e1c6529925e1b90d250225f4.tar.gz
connectbot-f03be9c1085a4f43e1c6529925e1b90d250225f4.tar.bz2
connectbot-f03be9c1085a4f43e1c6529925e1b90d250225f4.zip
Fix to SSH library to allow SSH protocol debugging
Diffstat (limited to 'src')
-rw-r--r--src/com/trilead/ssh2/Connection.java2
-rw-r--r--src/org/connectbot/service/TerminalBridge.java10
2 files changed, 12 insertions, 0 deletions
diff --git a/src/com/trilead/ssh2/Connection.java b/src/com/trilead/ssh2/Connection.java
index 1741a4c..98e5fdd 100644
--- a/src/com/trilead/ssh2/Connection.java
+++ b/src/com/trilead/ssh2/Connection.java
@@ -1589,6 +1589,8 @@ public class Connection
}
};
}
+
+ Logger.logger = logger;
}
}
diff --git a/src/org/connectbot/service/TerminalBridge.java b/src/org/connectbot/service/TerminalBridge.java
index e618b5b..fff216e 100644
--- a/src/org/connectbot/service/TerminalBridge.java
+++ b/src/org/connectbot/service/TerminalBridge.java
@@ -465,6 +465,16 @@ public class TerminalBridge implements VDUDisplay, OnKeyListener, InteractiveCal
new Thread(new Runnable() {
public void run() {
try {
+ /* Uncomment when debugging SSH protocol:
+ DebugLogger logger = new DebugLogger() {
+
+ public void log(int level, String className, String message) {
+ Log.d("SSH", message);
+ }
+
+ };
+ connection.enableDebugging(true, logger);
+ */
connectionInfo = connection.connect(new HostKeyVerifier());
if (connectionInfo.clientToServerCryptoAlgorithm