Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Where is my SSH Client Input Stream

Help
2009-11-14
2013-05-20
  • Andrew Waters
    Andrew Waters
    2009-11-14

    Hi all,

    I'm trying to evaluate sshtools with a "simple" ssh daemon process.  I have follwed a tutorial on the web and extended NativeProcessProvider etc and if I read from STDIN (System.in) I can start a standard SSH client to my daemon and everything I enter on the console is proceesed as you would expect - however that is the server console not the client input. Inside my Shell process I've tried reading from "stdin.getInputStream()" but that just leads to a loop as it just reads the echoed output (as it's just a DynamicBuffer).  I'm sure I'm doing something stupid or maybe trying the impossibe, but it must be possible else how could anyone write a shell?  The clients input (or rather the clients outputstream) must be there somewhere?

    Many thanks

    Andrew.

     

  • Anonymous
    2011-03-15

    any answer to this question?