Merge pull request #91 from lsowen/master

Fix issue with servers that have GSSAPI authentication enabled.
This commit is contained in:
Mohamed Zenadi
2015-06-09 09:15:23 +02:00

View File

@@ -38,6 +38,7 @@ public class SshConfigSessionFactory extends GitConfigSessionFactory {
@Override
protected void configure(OpenSshConfig.Host hc, Session session) {
session.setConfig("StrictHostKeyChecking", "no");
session.setConfig("PreferredAuthentications", "publickey,password");
CredentialsProvider provider = new CredentialsProvider() {
@Override