Hi! I was wondering why JSCH (1.45) never invokes getPassword() or promptPassword() whereas promptYesNo() and friends get used.
After reading through the source I found out that Session.java is _always_ using "userauth.none". Is this a known bug? Using the following hack JSCH will use my custom UserInfo class to get the password: ---8<--- Session session = jsch.getSession(user, host, port); session.setUserInfo(new MyFancyUserInfoClass()); jsch.setConfig("userauth.none", "com.jcraft.jsch.UserAuthPassword"); session.connect(); --->8--- -- Thanks, //richard ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users