Skip to content

Commit ec5d1ca

Browse files
committed
fix/error-when-using-ssh-with-gitlab
1 parent 607f9c9 commit ec5d1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/viscouspot/gitsync/util/GitManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class GitManager(private val context: Context, private val settingsManager: Sett
6262
override fun configure(host: OpenSshConfig.Host, session: Session) {
6363
session.setConfig("StrictHostKeyChecking", "no")
6464
session.setConfig("PreferredAuthentications", "publickey,password")
65-
session.setConfig("kex", "diffie-hellman-group-exchange-sha256")
65+
session.setConfig("kex", "diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha256")
6666
}
6767

6868
override fun createDefaultJSch(fs: org.eclipse.jgit.util.FS?): JSch {

0 commit comments

Comments
 (0)