aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md4
-rw-r--r--src/org/connectbot/transport/SSH.java6
2 files changed, 9 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 895d821..ddfccf0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,3 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- Key exchange and host key algorithm preference order was not being
respected.
+
+### Added
+- More context is given for failures to connect via SSH which should
+ reveal why a host might be incompatible with ConnectBot.
diff --git a/src/org/connectbot/transport/SSH.java b/src/org/connectbot/transport/SSH.java
index c5103f5..ab1ca4c 100644
--- a/src/org/connectbot/transport/SSH.java
+++ b/src/org/connectbot/transport/SSH.java
@@ -454,7 +454,11 @@ public class SSH extends AbsTransport implements ConnectionMonitor, InteractiveC
Log.e(TAG, "Problem in SSH connection thread during authentication", e);
// Display the reason in the text.
- bridge.outputLine(e.getCause().getMessage());
+ Throwable t = e.getCause();
+ do {
+ bridge.outputLine(t.getMessage());
+ t = t.getCause();
+ } while (t != null);
close();
onDisconnect();