aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed Zenadi <zeapo@users.noreply.github.com>2015-06-09 09:15:23 +0200
committerMohamed Zenadi <zeapo@users.noreply.github.com>2015-06-09 09:15:23 +0200
commita118a196be6494ab433349c8bd047c4b3a32b662 (patch)
treeea3d376e11c721134ac7742e8bd333b11c4f4578
parent84589ab8692c167aa18fdb4881b53a111e761d63 (diff)
parent8a22e6efe340ac673a6166b26b3e9fc2d87fc952 (diff)
Merge pull request #91 from lsowen/master
Fix issue with servers that have GSSAPI authentication enabled.
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/config/SshConfigSessionFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/config/SshConfigSessionFactory.java b/app/src/main/java/com/zeapo/pwdstore/git/config/SshConfigSessionFactory.java
index 333a6325..e156ca4d 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/config/SshConfigSessionFactory.java
+++ b/app/src/main/java/com/zeapo/pwdstore/git/config/SshConfigSessionFactory.java
@@ -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);
}
-} \ No newline at end of file
+}