mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
Merge pull request #91 from lsowen/master
Fix issue with servers that have GSSAPI authentication enabled.
This commit is contained in:
commit
a118a196be
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user