A cluster password-free state inspection method and device, electronic equipment and storage medium

CN122764544APending Publication Date: 2026-09-15INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610696086.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-20
Publication Date
2026-09-15

Smart Images

  • Figure CN122764544A_ABST
    Figure CN122764544A_ABST
Patent Text Reader

Abstract

The application discloses a cluster password-free state inspection method and device, electronic equipment and a storage medium. The method is applied to a cluster management server, node description information of each node in a to-be-detected cluster is acquired through a target interface, the node description information is subjected to data format analysis, and a cluster operation and maintenance file is obtained; based on the cluster operation and maintenance file, a target detection script is run to log in each node by using a preset private key, and the password-free state of each node is detected; wherein the target detection script specifies that each node preferentially uses a preset public key to authenticate the preset private key. The technical scheme of the embodiment of the application improves the efficiency and accuracy of large-scale cluster management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer operation and maintenance technology, and in particular to a method, device, electronic device and storage medium for cluster passwordless status inspection. Background Technology

[0002] In modern cloud computing and containerized applications, container orchestration tools serve as an important platform for managing containerized applications. The management of their clusters typically requires inspection of each node to ensure that the cluster is running normally and that the passwordless status of each node is maintained.

[0003] Existing inspection solutions typically rely on manually entering the cluster node list and manually logging into each node for inspection. This method is not only time-consuming and error-prone, but also difficult to apply to large-scale clusters. Summary of the Invention

[0004] This invention provides a method, apparatus, electronic device, and storage medium for cluster passwordless status inspection, in order to improve the efficiency and accuracy of large-scale cluster management.

[0005] According to one aspect of the present invention, a method for checking the passwordless status of a cluster is provided, applied to a cluster management server, the method comprising:

[0006] Obtain node description information for each node in the cluster to be detected through the target interface;

[0007] The node description information is parsed to obtain the cluster operation and maintenance file;

[0008] Based on the cluster operation and maintenance file, a target detection script is run to log in to each node using a preset private key and detect the passwordless status of each node; wherein, the target detection script specifies that each node should preferentially use a preset public key to authenticate the preset private key.

[0009] According to another aspect of the present invention, a cluster passwordless status inspection device is provided, integrated into a cluster management server, the device comprising:

[0010] The node information acquisition module is used to obtain the node description information of each node in the cluster to be detected through the target interface;

[0011] The operation and maintenance file acquisition module is used to parse the node description information into a data format to obtain cluster operation and maintenance files.

[0012] The passwordless status detection module is used to run a target detection script based on the cluster operation and maintenance file to log in to each node using a preset private key and detect the passwordless status of each node; wherein, the target detection script specifies that each node uses a preset public key to authenticate the preset private key.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the cluster passwordless status inspection method according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the cluster passwordless status inspection method according to any embodiment of the present invention.

[0018] The technical solution of this invention obtains node description information of each node in the cluster to be detected through a target interface; parses the node description information into a data format to obtain cluster operation and maintenance files; based on the cluster operation and maintenance files, runs a target detection script to log in to each node using a preset private key and detects the passwordless status of each node; the target detection script specifies that each node should preferentially use a preset public key to authenticate the preset private key. This method, which automatically obtains node description information to obtain cluster operation and maintenance files and implements passwordless status inspection based on the target detection script, solves the problems of manual inspection methods being time-consuming, error-prone, and unsuitable for large-scale clusters, thus improving the efficiency and accuracy of large-scale cluster management.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart of a cluster passwordless status inspection method provided in Embodiment 1 of the present invention;

[0022] Figure 2This is a schematic diagram of the structure of a cluster password-free status inspection device provided in Embodiment 2 of the present invention;

[0023] Figure 3 This is a schematic diagram of the structure of an electronic device that implements the cluster passwordless status inspection method of this invention. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "comprising" and "having" and any variations thereof in the specification, claims and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such processes, methods, products or devices.

[0026] Example 1

[0027] Figure 1 This is a flowchart of a cluster passwordless status inspection method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where passwordless status checks are performed on cluster nodes. The method can be executed by a cluster passwordless status inspection device, which can be implemented in hardware and / or software and can be configured in the cluster management server. Figure 1 As shown, the method includes:

[0028] S110. Obtain the node description information of each node in the cluster to be detected through the target interface.

[0029] The target interface can refer to the interface used by the cluster management server to automatically query the node information database. This target interface can be defined as periodically and automatically retrieving node description information for passwordless status checks. The cluster to be checked can refer to the cluster that requires passwordless status maintenance. Node description information can refer to the node identity description information of each node in the cluster to be checked, which may include internet protocol addresses and hostnames.

[0030] This embodiment can automatically obtain the node identity description information of each node in the cluster to be detected through the interface of the management server, without manual intervention.

[0031] In one optional implementation, obtaining node description information of each node in the cluster to be detected through the target interface may include: querying a preset database through the target interface to obtain node description information of each node; wherein, the preset database is used to store cluster node data of the cluster to be detected.

[0032] In this embodiment, the cluster node data of the cluster to be detected can be automatically uploaded and stored in a preset database in advance. When passwordless status maintenance is required, the cluster management server can automatically query the node identity description information of all clusters to be detected and each node in each cluster from the preset database through the interface. This can avoid the need for manual intervention to input the node list in the case of large-scale cluster detection, thereby avoiding errors caused by human negligence and improving the accuracy of the obtained node list.

[0033] S120. Parse the node description information to obtain the cluster operation and maintenance file.

[0034] Among them, cluster operation and maintenance files can refer to files in a specific format required to implement cluster operation and maintenance.

[0035] In this embodiment, the obtained node description information can be parsed to obtain a file in the format required for cluster operation and maintenance.

[0036] In one optional implementation, parsing the node description information to obtain a cluster operation and maintenance file may include: calling a data parsing tool to parse the node description information to extract the Internet Protocol address and hostname; organizing the Internet Protocol address and hostname into a target standard format to obtain a cluster operation and maintenance file; the cluster operation and maintenance file includes the mapping relationship between the Internet Protocol address and the hostname.

[0037] Here, "data parsing tool" can refer to a JSON data parsing tool. "Target standard format" can refer to a mapping format between Internet Protocol addresses and hostnames that enables cluster operation and maintenance.

[0038] This embodiment can call a JSON data parsing tool to parse the node data obtained by the target interface to extract the Internet Protocol address and hostname in the node description information, and obtain the cluster operation and maintenance file based on the mapping relationship between the Internet Protocol address and the hostname.

[0039] In cluster operations and maintenance, the above parsing operations yield cluster operation and maintenance files to achieve automated management and configuration synchronization. By parsing cluster node information, standard-format cluster operation and maintenance files can be automatically generated, enabling automated configuration management: when cluster nodes change, scripts can automatically update the cluster operation and maintenance files, avoiding errors and inconsistencies from manual maintenance; standardizing operation and maintenance processes: generating uniform-format cluster operation and maintenance files facilitates reading and use by different operation and maintenance tools, improving operational efficiency; reducing human error: automated generation of cluster operation and maintenance files avoids potential issues such as incorrect Internet Protocol addresses or inconsistent hostnames caused by manual input; supporting dynamic expansion: when the cluster size changes, it can quickly adapt to new node configurations, ensuring that operation and maintenance tools can correctly identify all cluster nodes; this automation method is applicable to large-scale cluster environments, significantly improving operational efficiency and system reliability.

[0040] S130. Based on the cluster operation and maintenance documents, run the target detection script to log in to each node using the preset private key and detect the passwordless status of each node; wherein, the target detection script specifies that each node should use the preset public key to authenticate the preset private key first.

[0041] The target detection script can be used to detect the passwordless status of nodes. The cluster management server runs this target detection script and attempts to log in to each node using a preset private key, detecting the passwordless status of the node based on the authentication method specified in the target detection script.

[0042] In one optional implementation, based on the cluster operation and maintenance files, running a target detection script to log in to each node using a preset private key and detect the passwordless status of each node may include:

[0043] Based on the cluster operation and maintenance files, the current inspection node is determined sequentially from each node. The target detection script is run using the operation and maintenance tools to establish a secure connection with the current inspection node using a preset private key, enabling the current inspection node to check whether it has a passwordless configuration file. The passwordless configuration file contains a preset public key. If the current inspection node has a passwordless configuration file, the passwordless status check of the current inspection node is determined to be successful. If the current inspection node does not have a passwordless configuration file, the passwordless status check of the current inspection node is determined to be unsuccessful.

[0044] The currently checked node can refer to the object that the cluster management server is currently checking for passwordless login status. The passwordless configuration file can exist on the currently checked node, and the passwordless configuration file must contain the correct preset public key of the cluster management server in order to log in to the currently checked node without a password from the cluster management server.

[0045] In this embodiment, a current inspection node can be sequentially determined from each node of the cluster to be detected. The target detection script is run using an operation and maintenance tool to attempt to establish a secure connection with the current inspection node through a security protocol using a preset private key. If the current inspection node can successfully authenticate with the preset private key, it can be determined that the current inspection node has a passwordless configuration file, that is, the cluster management server has passed the passwordless status check of the current inspection node. If the current inspection node fails to authenticate with the preset private key, it can be determined that the current inspection node does not have a passwordless configuration file, that is, the cluster management server has failed the passwordless status check of the current inspection node.

[0046] The target detection script includes the following functional parameters: specifying the secure connection timeout, trusting the host, disabling host key checking, disabling password authentication, and prioritizing the use of a preset public key for authentication.

[0047] In this embodiment, the target detection script can specify the secure connection timeout between the cluster management server and the current inspection node, such as 5 seconds; it can specify the username for connection; it can specify to disable key checking of the current inspection node; it can specify to disable login password authentication on the cluster management server; and it can specify to prioritize the use of preset public key authentication between the cluster management server and the current inspection node.

[0048] Optionally, after detecting the passwordless status of each node, the process may further include: obtaining the passwordless status check results for each node; generating an inspection report based on the passwordless status check results, according to the cluster dimension of the cluster to be detected; wherein the inspection report includes the Internet Protocol address of the target node and the reason for the passwordless check failure, and the target node is the node that failed the passwordless check among all nodes.

[0049] In this embodiment, after each cluster node completes the passwordless status check, an inspection report can be automatically generated according to the dimension of the cluster to be tested. This inspection report can list the Internet Protocol addresses of the nodes in the cluster to be tested that failed the passwordless status check, as well as the reasons for the failure (such as the node not having the correct preset public key). The inspection reports of all the clusters to be tested managed by the cluster management server are summarized into a single file and placed in a designated path for operation and maintenance personnel to view and promptly re-password-free check. This embodiment's automated inspection and report generation can reduce the workload of administrators and lower labor costs.

[0050] Optionally, the cluster passwordless status inspection method in this embodiment may further include repairing the passwordless status of the target node according to a preset repair strategy; the preset repair strategy is to copy a preset public key to the target node; generating a prompt message based on the repair result and sending the prompt message to the operation and maintenance personnel.

[0051] This embodiment can also be designed with an automatic repair function (such as automatically copying a preset public key to the node that failed the passwordless check) to repair it for nodes identified in the previous step of the inspection. Successful or unsuccessful repair results can be automatically sent to maintenance personnel for record-keeping or manual intervention. This embodiment can promptly repair node passwordless configuration issues, ensure secure communication between cluster nodes, and reduce security risks.

[0052] Optionally, the cluster passwordless status inspection method in this embodiment can be configured with an inspection frequency (e.g., daily, weekly) to achieve periodic automated inspections, ensuring that the passwordless status of cluster nodes is always monitored and managed. This periodic automated inspection ensures that the cluster's passwordless status remains healthy, avoiding potential problems caused by untimely inspections.

[0053] The technical solution of this embodiment obtains node description information of each node in the cluster to be detected through the target interface; parses the node description information into a data format to obtain cluster operation and maintenance files; based on the cluster operation and maintenance files, runs a target detection script to log in to each node using a preset private key and detects the passwordless status of each node; the target detection script specifies that each node should use a preset public key to authenticate the preset private key. By adopting a technical means of automatically obtaining cluster operation and maintenance files by acquiring node description information and implementing passwordless status inspection based on the target detection script, this solution solves the problems that manual inspection methods are not only time-consuming and prone to errors, but also difficult to apply to large-scale clusters, thus improving the efficiency and accuracy of large-scale cluster management.

[0054] Example 2

[0055] Figure 2 This is a schematic diagram of a cluster passwordless status inspection device provided in Embodiment 2 of the present invention. Figure 2 As shown, the device includes: a node information acquisition module 210, an operation and maintenance file acquisition module 220, and a passwordless status detection module 230. Wherein:

[0056] The node information acquisition module 210 is used to acquire node description information of each node in the cluster to be detected through the target interface;

[0057] The operation and maintenance file acquisition module 220 is used to parse the node description information into a data format to obtain cluster operation and maintenance files.

[0058] The passwordless status detection module 230 is used to run a target detection script based on the cluster operation and maintenance file to log in to each node using a preset private key and detect the passwordless status of each node; wherein, the target detection script specifies that each node uses a preset public key to authenticate the preset private key.

[0059] The technical solution of this embodiment obtains node description information of each node in the cluster to be detected through the target interface; parses the node description information into a data format to obtain cluster operation and maintenance files; based on the cluster operation and maintenance files, runs a target detection script to log in to each node using a preset private key and detects the passwordless status of each node; the target detection script specifies that each node should use a preset public key to authenticate the preset private key. By adopting a technical means of automatically obtaining cluster operation and maintenance files by acquiring node description information and implementing passwordless status inspection based on the target detection script, this solution solves the problems that manual inspection methods are not only time-consuming and prone to errors, but also difficult to apply to large-scale clusters, thus improving the efficiency and accuracy of large-scale cluster management.

[0060] Optionally, the node information acquisition module 210 can be used for:

[0061] The target interface is used to query a preset database to obtain node description information for each node;

[0062] The preset database is used to store the cluster node data of the cluster to be detected, and the node description information includes Internet Protocol address and hostname.

[0063] Optionally, the operation and maintenance file acquisition module 220 can be used for:

[0064] The data parsing tool is invoked to parse the data format of the node description information and extract the Internet Protocol address and the hostname.

[0065] The Internet Protocol address and the hostname are organized into a target standard format to obtain the cluster operation and maintenance file; the cluster operation and maintenance file includes the mapping relationship between the Internet Protocol address and the hostname.

[0066] Optional, the passwordless status detection module 230 can be used for:

[0067] Based on the cluster operation and maintenance file, the current inspection node is determined sequentially from each node;

[0068] The target detection script is run using an operation and maintenance tool to establish a secure connection with the current inspection node using the preset private key, enabling the current inspection node to check whether it has a passwordless configuration file; wherein, the passwordless configuration file contains the preset public key;

[0069] If the passwordless configuration file is found to exist at the current inspection node, the passwordless status check of the current inspection node is determined to be successful.

[0070] If the passwordless configuration file is not found in the currently checked node, the passwordless status check of the currently checked node is determined to be unsuccessful.

[0071] Optionally, the target detection script includes the following functional parameters: specifying a secure connection timeout, trusting the host, disabling host key checking, disabling password authentication, and prioritizing the use of the preset public key authentication.

[0072] Optionally, the cluster passwordless status inspection method further includes an inspection report generation module, used after detecting the passwordless status of each node:

[0073] Obtain the passwordless status check results for each node;

[0074] Based on the results of the password-free status check, an inspection report is generated according to the cluster dimension of the cluster to be detected;

[0075] The inspection report includes the Internet Protocol address of the target node and the reason for the failure of the passwordless check. The target node is the node that failed the passwordless check among all the nodes.

[0076] Optionally, the cluster passwordless status inspection method further includes a status repair module, used for:

[0077] The target node is restored to its passwordless state according to a preset restoration strategy; the preset restoration strategy is to copy the preset public key to the target node.

[0078] A prompt message is generated based on the repair results and sent to the maintenance personnel.

[0079] The cluster passwordless status inspection device provided in the embodiments of the present invention can execute the cluster passwordless status inspection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.

[0080] Example 3

[0081] Figure 3 A schematic diagram of an electronic device 300 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers or various forms of mobile devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0082] like Figure 3As shown, the electronic device 300 includes at least one processor 301 and a memory, such as a read-only memory (ROM) 302 or a random access memory (RAM) 303, communicatively connected to the at least one processor 301. The memory stores computer programs executable by the at least one processor. The processor 301 can perform various appropriate actions and processes based on the computer program stored in the ROM 302 or loaded into the RAM 303 from storage unit 308. The RAM 303 can also store various programs and data required for the operation of the electronic device 300. The processor 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0083] Multiple components in electronic device 300 are connected to I / O interface 305, including: input unit 306, such as keyboard, mouse, etc.; output unit 307, such as various types of displays, speakers, etc.; storage unit 308, such as disk, optical disk, etc.; and communication unit 309, such as network card, modem, wireless transceiver, etc. Communication unit 309 allows electronic device 300 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0084] Processor 301 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 301 performs the various methods and processes described above, such as cluster passwordless state inspection methods.

[0085] In some embodiments, the cluster passwordless state inspection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 300 via ROM 302 and / or communication unit 309. When the computer program is loaded into RAM 303 and executed by processor 301, one or more steps of the cluster passwordless state inspection method described above may be performed. Alternatively, in other embodiments, processor 301 may be configured to perform the cluster passwordless state inspection method by any other suitable means (e.g., by means of firmware).

[0086] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0087] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0088] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0089] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0090] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0091] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0092] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0093] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for checking the passwordless status of a cluster, applied to a cluster management server, characterized in that, include: Obtain node description information for each node in the cluster to be detected through the target interface; The node description information is parsed to obtain the cluster operation and maintenance file; Based on the cluster operation and maintenance file, a target detection script is run to log in to each node using a preset private key and detect the passwordless status of each node; wherein, the target detection script specifies that each node should preferentially use a preset public key to authenticate the preset private key.

2. The method according to claim 1, characterized in that, Obtain node description information for each node in the cluster to be detected through the target interface, including: The target interface is used to query a preset database to obtain node description information for each node; The preset database is used to store the cluster node data of the cluster to be detected, and the node description information includes Internet Protocol address and hostname.

3. The method according to claim 2, characterized in that, The node description information is parsed to obtain cluster operation and maintenance files, including: The data parsing tool is invoked to parse the data format of the node description information and extract the Internet Protocol address and the hostname. The Internet Protocol address and the hostname are organized into a target standard format to obtain the cluster operation and maintenance file; the cluster operation and maintenance file includes the mapping relationship between the Internet Protocol address and the hostname.

4. The method according to claim 1, characterized in that, Based on the cluster operation and maintenance files, a target detection script is run to log in to each node using a preset private key, and the passwordless status of each node is detected, including: Based on the cluster operation and maintenance file, the current inspection node is determined sequentially from each node; The target detection script is run using an operation and maintenance tool to establish a secure connection with the current inspection node using the preset private key, enabling the current inspection node to check whether it has a passwordless configuration file; wherein, the passwordless configuration file contains the preset public key; If the passwordless configuration file is found to exist at the current inspection node, the passwordless status check of the current inspection node is determined to be successful. If the passwordless configuration file is not found in the currently checked node, the passwordless status check of the currently checked node is determined to be unsuccessful.

5. The method according to claim 4, characterized in that, The target detection script includes the following functional parameters: specifying the secure connection timeout, trusting the host, disabling host key checking, disabling password authentication, and prioritizing the use of the preset public key authentication.

6. The method according to claim 4, characterized in that, After detecting the passwordless status of each node, the process also includes: Obtain the passwordless status check results for each node; Based on the results of the password-free status check, an inspection report is generated according to the cluster dimension of the cluster to be detected; The inspection report includes the Internet Protocol address of the target node and the reason for the failure of the passwordless check. The target node is the node that failed the passwordless check among all the nodes.

7. The method according to claim 6, characterized in that, Also includes: The target node is restored to its passwordless state according to a preset restoration strategy; the preset restoration strategy is to copy the preset public key to the target node. A prompt message is generated based on the repair results and sent to the operation and maintenance personnel.

8. A cluster passwordless status inspection device, integrated into a cluster management server, characterized in that, include: The node information acquisition module is used to obtain the node description information of each node in the cluster to be detected through the target interface; The operation and maintenance file acquisition module is used to parse the node description information into a data format to obtain cluster operation and maintenance files. The passwordless status detection module is used to run a target detection script based on the cluster operation and maintenance file to log in to each node using a preset private key and detect the passwordless status of each node; wherein, the target detection script specifies that each node uses a preset public key to authenticate the preset private key.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a cluster passwordless status inspection method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute a cluster passwordless status inspection method according to any one of claims 1-7.