Hi, +-From: Prasad Shindikar <prasad.shindi...@gmail.com> -- |_Date: Thu, 26 Nov 2009 16:49:08 +0530 ________________ | |However, since I cannot know that before hand, if I am able to read |"Password:" from the stream; I will provide a password else I will provide |the encrypted data.
In SSH protocol, such a "Password: " message will not be sent on the stream, and before sending the password, encrypted data bi-directional streams will be established. |Hope I am being clear here. |Is there some way in which I can do this using Jsch ? I would be very happy |if I can break the atomic connect() method to prompt me for password before |successfully connecting. Yes, you can. Try http://www.jcraft.com/jsch/examples/Shell.java Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users