Use empty password instead of null to access SSH keys to avoid password being asked by libssh

This commit is contained in:
Abdelilah El Aissaoui 2023-05-16 13:37:47 +02:00
parent 716f08e465
commit b251b63f4e
No known key found for this signature in database
GPG key ID: 7587FC860F594869

View file

@ -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)