1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From e979380220b5e8894cc21c9be636c0eef005a967 Mon Sep 17 00:00:00 2001
From: Facundo Almeida <facundoalmeida@gmail.com>
Date: Tue, 20 May 2025 21:44:26 -0300
Subject: [PATCH] Add break after pubkey partial auth
This will stop trying other pubkeys and will move on to the next
supported authentication method (keyboard-interactive)
---
sftp/kio_sftp.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/sftp/kio_sftp.cpp b/sftp/kio_sftp.cpp
index b5882989d..27c345e0a 100644
--- a/sftp/kio_sftp.cpp
+++ b/sftp/kio_sftp.cpp
@@ -890,6 +890,7 @@ Result SFTPWorker::openConnectionWithoutCloseOnError()
}
if (rc == SSH_AUTH_PARTIAL) {
method = ssh_auth_list(mSession);
+ break;
}
if (rc != SSH_AUTH_DENIED || !mPublicKeyAuthInfo || !mPublicKeyAuthInfo->isModified()) {
clearPubKeyAuthInfo();
--
GitLab
|