Linux terminal login authentication method and device, computer equipment, medium and product
By generating random digital strings on Linux terminals and using the encryption and decryption process of using the secure authentication system, the problem of inefficient update of usernames and passwords when the operation and maintenance personnel leave is solved, and higher security and operation and maintenance are achieved efficiency.
Patent Information
- Application Number
- CN202411413395.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-01-10
AI Technical Summary
The traditional Linux terminal login authentication method needs to update the username and password one by one when the operation and maintenance personnel leave, which is inefficient and prone to human errors, which affects the normal operation and maintenance of the equipment and security guarantees.
By generating random number strings and combining with the encryption and decryption process of the security authentication system, login is only allowed when the decryption is successful and the decrypted string is consistent with the random number string, ensuring that each login credential is different, improving security and avoiding illegal login.
Effectively ensure the safety of equipment operation, avoid illegal login, improve operation and maintenance efficiency, and ensure that only users with correct certification can access the Linux terminal system.
Smart Images

Figure CN119299329A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of equipment maintenance, and in particular to a login authentication method, device, computer equipment, medium and product for a Linux terminal. Background Art
[0002] As a key device for charging electric vehicles, charging piles run software and hardware components based on the embedded Linux system. These components work together to achieve functions such as charging control, data communication, and billing management. Linux terminals play a vital role in the maintenance of charging piles. They provide operators with an interface to interact directly with the charging pile system to perform key maintenance operations such as troubleshooting, system upgrades, and parameter configuration.
[0003] At present, when operation and maintenance personnel log in to the Linux terminal to perform equipment maintenance, they generally use the user name and password authentication method. In this method, after the equipment leaves the factory, the operation and maintenance personnel set the user name and password required to log in to the Linux terminal by themselves, and then use this user name and password to log in to the terminal to carry out equipment maintenance work.
[0004] However, the traditional authentication method has significant drawbacks in practical applications. When an operator leaves, the username and password of the charging pile must be updated for security reasons. At this time, the only way to update the username and password of the charging piles one by one is offline. Each charging pile needs to be operated separately, which is not only inefficient, but also prone to human errors during operation, affecting the normal operation and safety of the equipment. Summary of the invention
[0005] Based on this, it is necessary to provide a login authentication method, device, computer equipment, medium and product for a Linux terminal that can effectively ensure the security of device operation in response to the above technical problems.
[0006] In a first aspect, the present application provides a login authentication method for a Linux terminal, comprising:
[0007] Upon receiving a target string input by an operation and maintenance personnel, a random number string is generated according to the target string;
[0008] When the operation and maintenance personnel input the random number string into the security authentication system, obtain the ciphertext generated by the security authentication system for the random number string;
[0009] If the ciphertext is decrypted successfully and the decrypted string is consistent with the random number string, logging into the Linux terminal is allowed.
[0010] In one embodiment, the step of generating a random number string according to a target string includes:
[0011] Identify the text content of the target string;
[0012] When the text content is verified, a random number of a preset length is generated to obtain a random number string, and the random number string is displayed to the operation and maintenance personnel.
[0013] In one embodiment, the process of an operation and maintenance personnel inputting a random number string into a security authentication system includes:
[0014] When the operation and maintenance personnel triggers the login security authentication system, the login information entered by the operation and maintenance personnel is obtained;
[0015] When the login information is verified, the operation and maintenance personnel are prompted to enter a random number string.
[0016] In one embodiment, the step of obtaining the ciphertext generated by the security authentication system for the random digital string includes:
[0017] The random number string is encrypted with a private key through a security authentication system to obtain a corresponding ciphertext, and the ciphertext is displayed to an operation and maintenance personnel through the security authentication system to instruct the operation and maintenance personnel to input the ciphertext.
[0018] In one embodiment, the method further comprises:
[0019] If the ciphertext decryption fails or the decrypted string is inconsistent with the random number string, you are not allowed to log in to the Linux terminal.
[0020] In one embodiment, the method further comprises:
[0021] When the operation and maintenance personnel is out of the job, the login information of the operation and maintenance personnel is deleted from the security authentication system to determine that the login information of the operation and maintenance personnel has failed the authentication;
[0022] If the login information verification fails, you are not allowed to log in to the Linux terminal.
[0023] In a second aspect, the present application also provides a login authentication device for a Linux terminal, comprising:
[0024] A digital string generation module is used to generate a random digital string according to the target string when receiving the target string input by the operation and maintenance personnel;
[0025] A ciphertext acquisition module, used to obtain the ciphertext generated by the security authentication system for the random number string when the operation and maintenance personnel input the random number string into the security authentication system;
[0026] The login authentication module is used to allow login to the Linux terminal if the ciphertext is decrypted successfully and the decrypted string is consistent with the random number string.
[0027] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method steps of any one of the first aspects are implemented.
[0028] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements any one of the method steps in the first aspect when the computer program is executed by a processor.
[0029] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which implements any one of the method steps in the first aspect when executed by a processor.
[0030] The above-mentioned Linux terminal login authentication method, device, computer equipment, medium and product generate a random number string and combine it with the encryption and decryption process of the security authentication system. The generation of the random number string makes the credentials for each login different, which can improve the security of the login. Login is only allowed when the decryption is successful and the decrypted string is consistent with the random number string. It can effectively ensure the safety of equipment operation and avoid illegal login, thereby improving operation and maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0032] FIG1 is an application environment diagram of a login authentication method for a Linux terminal in one embodiment;
[0033] FIG2 is a schematic diagram of a flow chart of a login authentication method for a Linux terminal in one embodiment;
[0034] FIG3 is a schematic diagram of a flow chart of a login authentication method for a Linux terminal in another embodiment;
[0035] FIG4 is a structural block diagram of a login authentication device for a Linux terminal in one embodiment;
[0036] FIG. 5 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] The login authentication method of the Linux terminal provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the server 104 is deployed with a security authentication system. The terminal 102 is used to generate a random number string according to the target string when receiving the target string input by the operation and maintenance personnel, and obtain the ciphertext generated by the security authentication system for the random number string when the operation and maintenance personnel input the random number string into the security authentication system, and allow the login of the Linux terminal when the ciphertext is successfully decrypted and the decrypted string is consistent with the random number string. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0039] In an exemplary embodiment, as shown in FIG2 , a login authentication method for a Linux terminal is provided, and the method is applied to the terminal 102 in FIG1 as an example for explanation, including the following steps 202 to 206. Among them:
[0040] S202: upon receiving a target character string input by an operation and maintenance personnel, generating a random number string according to the target character string.
[0041] Optionally, when the operator inputs a target string, the Linux terminal generates a random string of numbers based on the specific target string. The target string can be a specific code, password, or other string with a specific meaning pre-set by the operator, thereby providing a dynamic and unpredictable credential in the subsequent security authentication process. For example, the operator inputs a specific string "lotus" on the Linux terminal, and the Linux terminal generates a random string of numbers "12345678".
[0042] S204: When the operation and maintenance personnel input the random number string into the security authentication system, obtain the ciphertext generated by the security authentication system for the random number string.
[0043] Optionally, the operation and maintenance personnel input the generated random number string into the security authentication system. After receiving the random number string, the security authentication system will encrypt it and generate a ciphertext to ensure that even if the ciphertext is intercepted, it is difficult to crack and restore the original random number string. Among them, the security authentication system is deployed on the website of the server, and the operation and maintenance personnel have registered on the website. The operation and maintenance personnel can log in to the security authentication system through the registration information during registration.
[0044] S206: If the ciphertext is decrypted successfully and the decrypted character string is consistent with the random number string, logging into the Linux terminal is allowed.
[0045] Optionally, the Linux terminal decrypts the ciphertext returned by the security authentication system. If the decryption is successful and the decrypted string is consistent with the random number string generated previously, the operation and maintenance personnel are allowed to log in to the Linux terminal, ensuring that only users who have been properly authenticated can access the Linux terminal system, preventing unauthorized personnel from illegally logging in.
[0046] In the above-mentioned login authentication method for the Linux terminal, by generating a random number string and combining it with the encryption and decryption process of the security authentication system, the generation of the random number string makes the credentials for each login different, which can improve the security of the login, and the login is only allowed if the decryption is successful and the decrypted string is consistent with the random number string, which can effectively ensure the safety of equipment operation, avoid illegal login, and thus improve operation and maintenance efficiency.
[0047] In an exemplary embodiment, the step of generating a random number string based on a target character string includes: identifying the text content of the target character string; if the text content is verified, generating a random number of a preset length to obtain a random number string, and displaying the random number string to an operation and maintenance personnel.
[0048] Optionally, when the operation and maintenance personnel input the target string, the Linux terminal first needs to identify the text content of the target string, including parsing the format of the target string, character encoding, etc., to ensure accurate identification of the target string. After the text content of the target string is verified, the Linux terminal will generate a random number of a specific length according to the preset requirements, and display this random number string to the operation and maintenance personnel so that the operation and maintenance personnel can obtain the credentials for subsequent security authentication. Among them, the preset length is set to meet the requirements of the security authentication system or the login system. For example, a 6-digit random number string is generated.
[0049] In this embodiment, the dynamism of the login credentials is increased by generating a random number string based on the target character string. Since the random number string is associated with the target character string and is randomly generated, it is more difficult for attackers to predict the login credentials compared to the traditional fixed password login method, which can enhance the security of login authentication.
[0050] In an exemplary embodiment, the process of an operation and maintenance personnel inputting a random number string into a security authentication system includes: when the operation and maintenance personnel triggers a login to the security authentication system, obtaining the login information input by the operation and maintenance personnel; when the login information is verified, prompting the operation and maintenance personnel to enter a random number string.
[0051] Optionally, when the operator triggers the login security authentication system, the system first obtains the login information entered by the operator, where the login information usually includes a user name, password, or other content related to identity identification. The system verifies the login information, for example, checking whether the user name exists, whether the password is correct, or verifying other identity authentication factors. After the login information is verified, the system prompts the operator to enter a random number string for further security authentication to ensure the legitimacy of the login operation.
[0052] In this embodiment, the login information of the operation and maintenance personnel is verified by the security authentication system, which can prevent illegal users from logging into the internal system. Afterwards, by inputting a random number string into the security authentication system and encrypting it by the security authentication system, the security of the verification information can be ensured, thereby improving the reliability of the login authentication.
[0053] In an exemplary embodiment, obtaining the ciphertext generated by the security authentication system for the random number string includes: encrypting the random number string with a private key through the security authentication system to obtain the corresponding ciphertext, and displaying the ciphertext to the operation and maintenance personnel through the security authentication system to instruct the operation and maintenance personnel to input the ciphertext.
[0054] Optionally, the security authentication system uses a private key to encrypt the random number string input by the operation and maintenance personnel. In this process, the random number string is input into the security authentication system as plain text, and the encryption algorithm converts the random number string according to the private key and specific encryption rules. Afterwards, the security authentication system displays the generated ciphertext to the operation and maintenance personnel so that the operation and maintenance personnel can pass the ciphertext to the subsequent verification link for decryption and verification operations.
[0055] In this embodiment, a high degree of security can be provided by using a private key to encrypt a random number string. Only an authorized security authentication system possesses the private key, ensuring that only a legitimate system can perform encryption operations and preventing external attackers from forging the encryption process. The private key encryption based on the security authentication system makes the ciphertext closely related to the security authentication system and the operations of the operation and maintenance personnel. When the ciphertext is subsequently decrypted and verified, if the decryption is successful and as expected, the identity of the operation and maintenance personnel can be more reliably verified.
[0056] In an exemplary embodiment, the method further includes: if the ciphertext is not decrypted successfully or the decrypted character string is inconsistent with the random number string, logging into the Linux terminal is not allowed.
[0057] Optionally, when the operator inputs the ciphertext, the Linux terminal uses the matching public key to decrypt the ciphertext and compares the decrypted string with the previously generated random number string. If the decryption fails, it may be because the ciphertext has been tampered with during transmission, the encryption key does not match, or other security issues occur. If the decryption succeeds but the string obtained is inconsistent with the random number string, it may be that the ciphertext has been maliciously replaced or an error occurred during the generation or transmission process. If the ciphertext decryption fails or the decrypted string is inconsistent with the random number string, the operator is not allowed to log in to the Linux terminal.
[0058] In this embodiment, by not allowing login to the Linux terminal when the ciphertext decryption fails or the decrypted string is inconsistent with the random number string, the device operation security can be effectively guaranteed, illegal login can be avoided, and operation and maintenance efficiency can be improved.
[0059] In an exemplary embodiment, the method also includes: when the operation and maintenance personnel is away from their job, deleting the operation and maintenance personnel's login information from the security authentication system, and determining that the operation and maintenance personnel's login information verification fails; if the login information verification fails, logging into the Linux terminal is not allowed.
[0060] Optionally, when the operation and maintenance personnel is out of the job, their login information is deleted from the security authentication system, ensuring that the identity of the operation and maintenance personnel in the system is removed, so that when the login verification is performed, their login information verification fails. Further, if the login information verification of the outgoing operation and maintenance personnel fails, they are not allowed to log in to the Linux terminal, thereby ensuring login security.
[0061] In this embodiment, by deleting the login information of the operation and maintenance personnel from the security authentication system when the operation and maintenance personnel is off-duty, the identity information of the operation and maintenance personnel can be managed in real time, thereby ensuring the real-time and reliability of login authentication.
[0062] In an exemplary embodiment, as shown in FIG3 , a login authentication method for a Linux terminal is provided, the method comprising the following steps:
[0063] S302: When receiving the target character string input by the operation and maintenance personnel, identify the text content of the target character string; when the text content is verified, generate a random number of a preset length to obtain a random number string, and display the random number string to the operation and maintenance personnel.
[0064] S304: When the operation and maintenance personnel triggers the login security authentication system, the login information input by the operation and maintenance personnel is obtained; when the login information is verified, the operation and maintenance personnel is prompted to enter a random number string.
[0065] S306: When the operation and maintenance personnel input the random number string into the security authentication system, the random number string is encrypted with a private key through the security authentication system to obtain a corresponding ciphertext, and the ciphertext is displayed to the operation and maintenance personnel through the security authentication system to instruct the operation and maintenance personnel to input the ciphertext.
[0066] S308: If the ciphertext is decrypted successfully and the decrypted character string is consistent with the random number string, logging into the Linux terminal is allowed.
[0067] S310: If the ciphertext decryption fails or the decrypted character string is inconsistent with the random number string, logging into the Linux terminal is not allowed.
[0068] S312: When the operation and maintenance personnel is in a resigned state, the login information of the operation and maintenance personnel is deleted from the security authentication system, and it is determined that the login information verification of the operation and maintenance personnel fails; when the login information verification fails, the user is not allowed to log in to the Linux terminal.
[0069] In this embodiment, by generating a random number string and combining it with the encryption and decryption process of the security authentication system, the generation of the random number string makes the credentials for each login different, which can improve the security of the login, and login is only allowed if the decryption is successful and the decrypted character string is consistent with the random number string, which can effectively ensure the safe operation of the equipment and avoid illegal login, thereby improving operation and maintenance efficiency.
[0070] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0071] Based on the same inventive concept, the embodiment of the present application also provides a Linux terminal login authentication device for implementing the above-mentioned Linux terminal login authentication method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of the one or more Linux terminal login authentication devices provided below can refer to the limitations of the Linux terminal login authentication method above, and will not be repeated here.
[0072] In an exemplary embodiment, as shown in FIG4 , a login authentication device for a Linux terminal is provided, comprising: a digital string generation module 10, a ciphertext acquisition module 20 and a login authentication module 30, wherein:
[0073] The digital string generation module 10 is used to generate a random digital string according to the target string when receiving the target string input by the operation and maintenance personnel.
[0074] The ciphertext acquisition module 20 is used to acquire the ciphertext generated by the security authentication system for the random number string when the operation and maintenance personnel input the random number string into the security authentication system.
[0075] The login authentication module 30 is used to allow login to the Linux terminal when the ciphertext is decrypted successfully and the decrypted character string is consistent with the random number string.
[0076] In an exemplary embodiment, the digital string generation module 10 is also used to identify the text content of the target character string; when the text content is verified, a random number of a preset length is generated to obtain a random digital string, and the random digital string is displayed to the operation and maintenance personnel.
[0077] In an exemplary embodiment, the ciphertext acquisition module 20 is also used to obtain the login information input by the operation and maintenance personnel when the operation and maintenance personnel triggers the login security authentication system; when the login information is verified, the operation and maintenance personnel are prompted to enter a random number string.
[0078] In an exemplary embodiment, the ciphertext acquisition module 20 is also used to perform private key encryption on the random digital string through a security authentication system to obtain the corresponding ciphertext, and display the ciphertext to the operation and maintenance personnel through the security authentication system to instruct the operation and maintenance personnel to input the ciphertext.
[0079] In an exemplary embodiment, the login authentication module 30 is further configured to disallow login to the Linux terminal if the ciphertext is not decrypted successfully or the decrypted string is inconsistent with the random number string.
[0080] In an exemplary embodiment, the login authentication module 30 is also used to delete the login information of the operation and maintenance personnel from the security authentication system when the operation and maintenance personnel is away from the job, and determine whether the login information verification of the operation and maintenance personnel has failed; if the login information verification has failed, login to the Linux terminal is not allowed.
[0081] Each module in the above-mentioned login authentication device of the Linux terminal can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0082] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a login authentication method for a Linux terminal is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0083] Those skilled in the art will understand that the structure shown in FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0084] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: when a target string input by an operation and maintenance personnel is received, a random number string is generated according to the target string; when the operation and maintenance personnel inputs the random number string into a security authentication system, a ciphertext generated by the security authentication system for the random number string is obtained; when the ciphertext is decrypted successfully and the decrypted string is consistent with the random number string, login to the Linux terminal is allowed.
[0085] In one embodiment, the generation of a random number string based on a target character string involved in the execution of a computer program by a processor includes: identifying the text content of the target character string; when the text content is verified, generating a random number of a preset length to obtain a random number string, and displaying the random number string to an operation and maintenance personnel.
[0086] In one embodiment, the process in which an operation and maintenance personnel inputs a random number string into a security authentication system when a processor executes a computer program includes: when the operation and maintenance personnel triggers a login to the security authentication system, obtaining login information input by the operation and maintenance personnel; and when the login information is verified, prompting the operation and maintenance personnel to input a random number string.
[0087] In one embodiment, obtaining the ciphertext generated by the security authentication system for the random number string involved in the processor executing the computer program includes: encrypting the random number string with a private key through the security authentication system to obtain the corresponding ciphertext, and displaying the ciphertext to the operation and maintenance personnel through the security authentication system to instruct the operation and maintenance personnel to input the ciphertext.
[0088] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the ciphertext is decrypted unsuccessfully or the decrypted string is inconsistent with the random number string, logging into the Linux terminal is not allowed.
[0089] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the operation and maintenance personnel is in a resigned state, the login information of the operation and maintenance personnel is deleted from the security authentication system, and it is determined that the login information verification of the operation and maintenance personnel fails; when the login information verification fails, login to the Linux terminal is not allowed.
[0090] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when a target string input by an operation and maintenance personnel is received, a random number string is generated according to the target string; when the operation and maintenance personnel inputs the random number string into a security authentication system, a ciphertext generated by the security authentication system for the random number string is obtained; when the ciphertext is decrypted successfully and the decrypted string is consistent with the random number string, login to the Linux terminal is allowed.
[0091] In one embodiment, the computer program, when executed by a processor, involves generating a random number string based on a target string, including: identifying the text content of the target string; when the text content is verified, generating a random number of a preset length to obtain a random number string, and displaying the random number string to an operation and maintenance personnel.
[0092] In one embodiment, the process in which an operation and maintenance personnel inputs a random number string into a security authentication system when a computer program is executed by a processor includes: when the operation and maintenance personnel triggers a login to the security authentication system, obtaining the login information input by the operation and maintenance personnel; and when the login information is verified, prompting the operation and maintenance personnel to input a random number string.
[0093] In one embodiment, obtaining the ciphertext generated by the security authentication system for the random number string involved in the execution of the computer program by the processor includes: encrypting the random number string with a private key through the security authentication system to obtain the corresponding ciphertext, and displaying the ciphertext to the operation and maintenance personnel through the security authentication system to instruct the operation and maintenance personnel to input the ciphertext.
[0094] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the ciphertext is not decrypted successfully or the decrypted string is inconsistent with the random number string, logging into the Linux terminal is not allowed.
[0095] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the operation and maintenance personnel is away from the job, the login information of the operation and maintenance personnel is deleted from the security authentication system, and it is determined that the login information verification of the operation and maintenance personnel fails; when the login information verification fails, login to the Linux terminal is not allowed.
[0096] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: when a target string input by an operation and maintenance personnel is received, a random number string is generated according to the target string; when the operation and maintenance personnel inputs the random number string into a security authentication system, a ciphertext generated by the security authentication system for the random number string is obtained; when the ciphertext is decrypted successfully and the decrypted string is consistent with the random number string, login to the Linux terminal is allowed.
[0097] In one embodiment, the computer program, when executed by a processor, involves generating a random number string based on a target string, including: identifying the text content of the target string; when the text content is verified, generating a random number of a preset length to obtain a random number string, and displaying the random number string to an operation and maintenance personnel.
[0098] In one embodiment, the process in which an operation and maintenance personnel inputs a random number string into a security authentication system when a computer program is executed by a processor includes: when the operation and maintenance personnel triggers a login to the security authentication system, obtaining the login information input by the operation and maintenance personnel; and when the login information is verified, prompting the operation and maintenance personnel to input a random number string.
[0099] In one embodiment, obtaining the ciphertext generated by the security authentication system for the random number string involved in the execution of the computer program by the processor includes: encrypting the random number string with a private key through the security authentication system to obtain the corresponding ciphertext, and displaying the ciphertext to the operation and maintenance personnel through the security authentication system to instruct the operation and maintenance personnel to input the ciphertext.
[0100] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the ciphertext is not decrypted successfully or the decrypted string is inconsistent with the random number string, logging into the Linux terminal is not allowed.
[0101] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the operation and maintenance personnel is away from the job, the login information of the operation and maintenance personnel is deleted from the security authentication system, and it is determined that the login information verification of the operation and maintenance personnel fails; when the login information verification fails, login to the Linux terminal is not allowed.
[0102] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0103] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0104] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A login authentication method for a Linux terminal, characterized in that: The method comprises: Upon receiving a target string input by an operation and maintenance personnel, generating a random number string according to the target string; When the operation and maintenance personnel inputs the random number string into the security authentication system, obtaining the ciphertext generated by the security authentication system for the random number string; If the ciphertext is decrypted successfully and the decrypted character string is consistent with the random number string, logging into the Linux terminal is allowed.
2. The method according to claim 1, characterized in that The generating a random digital string according to the target character string comprises: Identifying the text content of the target string; When the text content is verified, a random number of a preset length is generated to obtain a random number string, and the random number string is displayed to the operation and maintenance personnel.
3. The method according to claim 1, characterized in that: The process of the operation and maintenance personnel inputting the random number string into the security authentication system includes: When the operation and maintenance personnel triggers logging into the security authentication system, obtaining login information input by the operation and maintenance personnel; When the login information is verified successfully, the operation and maintenance personnel is prompted to input the random number string.
4. The method according to claim 1, characterized in that: The obtaining of the ciphertext generated by the security authentication system for the random digital string includes: The random number string is encrypted with a private key through the security authentication system to obtain a corresponding ciphertext, and the ciphertext is displayed to the operation and maintenance personnel through the security authentication system to instruct the operation and maintenance personnel to input the ciphertext.
5. The method according to claim 1, characterized in that The method further comprises: If the ciphertext is not decrypted successfully or the decrypted character string is inconsistent with the random number string, logging into the Linux terminal is not allowed.
6. The method according to claim 3, characterized in that The method further comprises: In the case where the operation and maintenance personnel is in a resigned state, deleting the login information of the operation and maintenance personnel from the security authentication system, and determining that the login information verification of the operation and maintenance personnel fails; If the login information fails to be verified, logging into the Linux terminal is not allowed.
7. A login authentication device for a Linux terminal, characterized in that: The device comprises: A digital string generation module is used to generate a random digital string according to the target string when receiving the target string input by the operation and maintenance personnel; A ciphertext acquisition module, used for acquiring the ciphertext generated by the security authentication system for the random number string when the operation and maintenance personnel input the random number string into the security authentication system; The login authentication module is used to allow login to the Linux terminal when the ciphertext is decrypted successfully and the decrypted character string is consistent with the random number string.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.