From ebd3a5ab0559937d5cd3500ce5c27e7b9d478191 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Fri, 31 Aug 2007 14:06:02 +0000 Subject: [PATCH] [201864] Fix Terminal SSH keyboard interactive authentication --- .../org/eclipse/tm/internal/terminal/ssh/SshConnection.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminal/org.eclipse.tm.terminal.ssh/src/org/eclipse/tm/internal/terminal/ssh/SshConnection.java b/terminal/org.eclipse.tm.terminal.ssh/src/org/eclipse/tm/internal/terminal/ssh/SshConnection.java index 9c31af994b4..316755146fe 100644 --- a/terminal/org.eclipse.tm.terminal.ssh/src/org/eclipse/tm/internal/terminal/ssh/SshConnection.java +++ b/terminal/org.eclipse.tm.terminal.ssh/src/org/eclipse/tm/internal/terminal/ssh/SshConnection.java @@ -11,6 +11,7 @@ * Martin Oberhuber (Wind River) - [175686] Adapted to new IJSchService API * - copied code from org.eclipse.team.cvs.ssh2/JSchSession (Copyright IBM) * Martin Oberhuber (Wind River) - [198790] make SSH createSession() protected + * Mikhail Kalugin - [201864] Fix Terminal SSH keyboard interactive authentication *******************************************************************************/ package org.eclipse.tm.internal.terminal.ssh; @@ -33,6 +34,7 @@ import com.jcraft.jsch.Channel; import com.jcraft.jsch.ChannelShell; import com.jcraft.jsch.JSchException; import com.jcraft.jsch.Session; +import com.jcraft.jsch.UIKeyboardInteractive; import com.jcraft.jsch.UserInfo; class SshConnection extends Thread { @@ -169,7 +171,7 @@ class SshConnection extends Thread { return display; } - private static class MyUserInfo implements UserInfo { + private static class MyUserInfo implements UserInfo, UIKeyboardInteractive { private final String fConnectionId; private final String fUser; private String fPassword;