FELIX-1857 - Backspace not working when using admin:connect
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@834177 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java b/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java
index 018130a..84f899d 100644
--- a/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java
+++ b/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java
@@ -24,6 +24,7 @@
import org.apache.sshd.ClientChannel;
import org.apache.sshd.ClientSession;
import org.apache.sshd.SshClient;
+import org.apache.sshd.client.channel.ChannelShell;
import org.apache.sshd.client.future.ConnectFuture;
import org.apache.sshd.common.util.NoCloseInputStream;
import org.apache.sshd.common.util.NoCloseOutputStream;
@@ -114,6 +115,7 @@
ClientChannel channel = session.createChannel("shell");
channel.setIn(new NoCloseInputStream(System.in));
+ ((ChannelShell) channel).setupSensibleDefaultPty();
channel.setOut(new NoCloseOutputStream(System.out));
channel.setErr(new NoCloseOutputStream(System.err));
channel.open();