1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From dcc09c87bd7bb2a08903963cb16e170b08b8229c Mon Sep 17 00:00:00 2001
From: Facundo Almeida <facundoalmeida@gmail.com>
Date: Wed, 21 May 2025 23:49:21 -0300
Subject: [PATCH] Clear pubkey auth info after using key
---
sftp/kio_sftp.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/sftp/kio_sftp.cpp b/sftp/kio_sftp.cpp
index b8117edf5..504ec6555 100644
--- a/sftp/kio_sftp.cpp
+++ b/sftp/kio_sftp.cpp
@@ -890,6 +890,7 @@ Result SFTPWorker::openConnectionWithoutCloseOnError()
}
if (rc == SSH_AUTH_PARTIAL) {
qCDebug(KIO_SFTP_LOG) << "Public key authentication succeeded, but another method is still required";
+ clearPubKeyAuthInfo();
method = ssh_auth_list(mSession);
break;
}
--
GitLab
|