Use empty password instead of null to access SSH keys to avoid password being asked by libssh
This commit is contained in:
parent
716f08e465
commit
b251b63f4e
@ -42,7 +42,7 @@ class GRemoteSession @Inject constructor(
|
|||||||
session.loadOptionsFromConfig()
|
session.loadOptionsFromConfig()
|
||||||
|
|
||||||
session.connect()
|
session.connect()
|
||||||
var result = session.userAuthPublicKeyAuto(null, null)
|
var result = session.userAuthPublicKeyAuto(null, "")
|
||||||
|
|
||||||
if (result == 1) {
|
if (result == 1) {
|
||||||
credentialsStateManager.updateState(CredentialsRequested.SshCredentialsRequested)
|
credentialsStateManager.updateState(CredentialsRequested.SshCredentialsRequested)
|
||||||
|
Loading…
Reference in New Issue
Block a user