Commits

Anonymous committed aea865e

PR 53437prevent ssh tasks from prompting for kerberos username/password under Java 7

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@142960213f79535-47bb-0310-9956-ffa450edef68

Comments (0)

Files changed (2)

-Changes from Ant 1.8.4 TO Ant 1.9.0
+    Changes from Ant 1.8.4 TO Ant 1.9.0
 ===================================
 
 Changes that could break older environments:
  * <get> now supports HTTP redirects using status code 307.
    Bugzilla Report 54374.
 
+ * ssh tasks prompt for kerberos username/password under Java 7
+   Bugzilla Report 53437.
+
 Other changes:
 --------------
 

src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java

         }
 
         Session session = jsch.getSession(userInfo.getName(), host, port);
+        session.setConfig("PreferredAuthentications",
+                "publickey,keyboard-interactive,password");
         session.setUserInfo(userInfo);
         log("Connecting to " + host + ":" + port);
         session.connect();