richard -rw- weinberger schrieb: > 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?
No, you misunderstood. It is common practice to first try to "authenticate" to the SSH server using the "none" method (i.e. without any credentials). If the server accepts it, fine. Most servers will not, and instead respond with a list of accepted authentication methods, and JSch will then try one of these - when password authentication is in the list and you provided a UserInfo object (and no other authentication method earlier in the list works), there should be a password prompt. If this doesn't work for you, you have some other problem. Paul ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jsch-users
