fix(pve): Fix connection issues and add more error handlings (#1081)

* feat(PVE): Added display of PVE connection loading steps

Added a detailed display of loading steps during the PVE connection process, including stages such as establishing an SSH tunnel, authentication, and data retrieval

Also optimized the sorting of PVE storage content and the logic for handling connection errors

* feat(pve): Added error handling and prompts for PVE two-factor authentication

Added error handling for PVE servers when two-factor authentication is enabled, along with relevant error types and localized prompts

* feat(PVE): Added support for PVE passwords during key-based authentication

- Added the `pvePwd` field to the `ServerCustom` model
- Added a PVE password input field to the edit page (displayed only during key-based authentication)
- Updated multilingual files to support PVE-related loading states and password prompts
- Optimized PVE connection logic to support password verification during key-based authentication
This commit is contained in:
GT610
2026-03-22 16:25:48 +08:00
committed by GitHub
parent 2f67938b09
commit 09431a0b08
37 changed files with 641 additions and 139 deletions

View File

@@ -154,7 +154,14 @@
"pushToken": "Push token",
"pveIgnoreCertTip": "Not recommended to enable, beware of security risks! If you are using the default certificate from PVE, you need to enable this option.",
"pveLoginFailed": "Login failed. Unable to authenticate with username/password from server configuration for Linux PAM login.",
"pveOtpRequired": "Two-factor authentication is enabled on this PVE server. Please enter the OTP code.",
"pveVersionLow": "This feature is currently in the testing phase and has only been tested on PVE 8+. Please use it with caution.",
"pveLoadingForwarding": "Establishing SSH tunnel...",
"pveLoadingLogin": "Authenticating with PVE...",
"pveLoadingData": "Fetching cluster data...",
"pveLoadingConnect": "Connecting...",
"pvePassword": "PVE Password",
"pvePasswordHint": "Required when using key-based SSH authentication",
"read": "Read",
"recentConnections": "Recent Connections",
"rememberPwdInMem": "Remember password in memory",