Add SFTP support to sync
[lgpl/argeo-commons.git] / org.argeo.core / src / org / argeo / sync / fs / SshSync.java
index 43af4503678213a37e7872d649ea6ebf106e3185..773f32d34e226dc3bbb70c3112c08c775f70eabe 100644 (file)
@@ -143,21 +143,4 @@ public class SshSync {
 
        }
 
-       static void openShell(ClientSession session) {
-               try (ClientChannel channel = session.createChannel(ClientChannel.CHANNEL_SHELL)) {
-                       channel.setIn(new NoCloseInputStream(System.in));
-                       channel.setOut(new NoCloseOutputStream(System.out));
-                       channel.setErr(new NoCloseOutputStream(System.err));
-                       channel.open();
-
-                       Set<ClientChannelEvent> events = new HashSet<>();
-                       events.add(ClientChannelEvent.CLOSED);
-                       channel.waitFor(events, 0);
-               } catch (IOException e) {
-                       // TODO Auto-generated catch block
-                       e.printStackTrace();
-               } finally {
-                       session.close(false);
-               }
-       }
 }