From b251b63f4ef9787886823a72b05a110739e21141 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Tue, 16 May 2023 13:37:47 +0200 Subject: [PATCH] Use empty password instead of null to access SSH keys to avoid password being asked by libssh --- .../com/jetpackduba/gitnuro/credentials/GRemoteSession.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/credentials/GRemoteSession.kt b/src/main/kotlin/com/jetpackduba/gitnuro/credentials/GRemoteSession.kt index f2e976e..8f13c90 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/credentials/GRemoteSession.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/credentials/GRemoteSession.kt @@ -42,7 +42,7 @@ class GRemoteSession @Inject constructor( session.loadOptionsFromConfig() session.connect() - var result = session.userAuthPublicKeyAuto(null, null) + var result = session.userAuthPublicKeyAuto(null, "") if (result == 1) { credentialsStateManager.updateState(CredentialsRequested.SshCredentialsRequested)