Thanks to John Stote for providing a great solution. This piece handles the
message coming from the server:
public void showMessage(String s) {
log.debug( "ShowMessage called: \""+ s +"\"" );
//System.out.println(s);
}
... in essence, we are doing nothing to handle the event.
--------------------------------------------------------------------
This solution handles Yes/No message boxes:
public boolean promptYesNo(String s) {
log.debug( "This JSCH server fingerprint warning/question is
auto-accepted" );
// Always return true
return true;
}
The combination of the two solved my problems. Thanks, John!
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users