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
commit a118a196be

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
@ -67,4 +68,4 @@ public class SshConfigSessionFactory extends GitConfigSessionFactory {
UserInfo userInfo = new CredentialsProviderUserInfo(session, provider);
session.setUserInfo(userInfo);
}
}
}