Vehicle operation and maintenance method based on SSH reverse proxy, storage medium and equipment

Through SSH reverse proxy technology and backup mechanism, it solves the problems of bastion machine operation and maintenance difficulties caused by dynamic IP in vehicle operation and maintenance and VPN technology limitations, realizes efficient and safe remote management, adapts to the dynamic IP environment and ensures vehicle operation and maintenance. Dimension stability and security.

CN118764530APending Publication Date: 2024-10-11CHENGDU DBAPP SECURITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411192524.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

When vehicles use 4G mobile networks, due to the characteristics of dynamic IP addresses, traditional bastion machines are difficult to perform effective operation and maintenance management. VPN technology has problems such as complex configuration, performance degradation, strong dependence on fixed IP, and security challenges, resulting in poor user experience. and potential risk of disconnection.

Method used

Use SSH reverse proxy technology to establish a connection with the bastion machine through Agent to achieve dynamic IP adaptability and long connection management, and activate the reconnection mechanism and emergency strategy when the connection is disconnected, and introduce backup bastion machines and backup servers to ensure system stability sex and safety.

Benefits of technology

It simplifies configuration and deployment, improves performance and security, adapts to dynamic IP environments, ensures the stability and real-time response of vehicle remote management, reduces the risk of data loss, provides powerful encryption and authentication mechanisms, and improves system reliability. Reliability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764530A_ABST
    Figure CN118764530A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle operation and maintenance method based on SSH reverse proxy, a storage medium and equipment, a vehicle establishes SSH reverse proxy connection with a bastion host through an Agent, and the Agent reports its own IP to the bastion host in real time. And when it is detected that the bastion host is disconnected from the vehicle, a reconnection mechanism is started. If reconnection fails, an emergency strategy is started, disconnection information is sent to the standby server, the standby server tries to detect the current bastion host and check whether the current bastion host is still reachable, if the current bastion host is not reachable, the standby server triggers an alarm notification and starts the standby bastion host, and meanwhile, the standby server notifies the Agent to be switched to the standby bastion host. Based on Agent and SSH reverse proxy, the dynamic IP is reported in real time, operation and maintenance of the bastion host are facilitated, safety and stability of vehicle operation and maintenance are improved through arrangement of the standby server and the standby bastion host, and the method has good practicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle operation and maintenance management, and in particular relates to a vehicle operation and maintenance method, storage medium and equipment based on SSH reverse proxy. Background Art

[0002] In the field of intelligent vehicles, especially unmanned driving, vehicles are usually equipped with highly intelligent Linux on-board computers, which act as the intelligent brain of the vehicle, responsible for sensing the environment, real-time data processing, and performing various tasks. In the operation of vehicle management companies, especially when managing driving vehicles, it is necessary to ensure that the vehicle can report the data of the on-board sensors in real time, and that the on-board computer can be operated remotely and manually when necessary. In addition, in order to maintain operation and maintenance safety and conduct staff behavior audits, unified management and control of on-board computer clusters is required. This introduces the bastion host, which acts as a centralized control and monitoring center in the above scenario.

[0003] However, the remote operation and maintenance and security management of these on-board computers face a series of complex problems, one of which is the challenge caused by the dynamic IP characteristics of mobile communications. The vehicle management company uses Linux on-board computers as the intelligent master control of the vehicle. When there is a problem or other needs, it needs to support real-time reporting of on-board sensor-related data and support manual remote operation of the on-board computer for remote manual operation control. For the sake of operation and maintenance safety and staff behavior audit, we use the bastion host to uniformly control the operation and maintenance safety of the vehicle on-board computer cluster. However, the vehicle on-board computer uses a 4G mobile network. As the vehicle moves, the IP will change dynamically. The traditional bastion host can only operate and maintain assets with static IPs. The use of VPN proxy will be limited by the network restrictions of VPN.

[0004] In summary, when a vehicle uses a 4G mobile network to communicate, its IP address will change dynamically due to the mobility of the vehicle, and the traditional bastion host design is only suitable for assets with static IP addresses. Although the use of a VPN proxy is technically a solution, it is limited by the limitations of the VPN network. Existing VPN technology supports dynamic IP asset management, and virtual private network (VPN) technology has a wide range of applications in remote access and management, but there are also the following specific challenges and limitations in the remote management of vehicle onboard computers: ① Complex configuration and management: Existing VPN solutions usually require complex configuration and management on vehicles and management sites. This includes configuring VPN clients and servers, setting up key exchanges, handling certificates, and other operations. This complexity can lead to difficulties in deployment and maintenance, especially when large-scale fleets are involved. Users need to have advanced network knowledge to correctly configure VPNs, which limits their widespread application.

[0005] ② Performance degradation leading to transmission delays: VPN connections may cause performance degradation, especially in network environments with limited bandwidth or high latency. VPN technology usually introduces additional encryption and decryption processes to ensure data security. These additional processing steps lead to performance degradation and increase the delay of data transmission, which is especially obvious in low-bandwidth or high-latency network environments, and has a negative impact on data transmission speed.

[0006] ③ Strong dependence on fixed IP addresses: Existing VPNs usually require the use of static IP addresses or domain names to establish connections. In a dynamic IP address environment, VPN technology cannot adapt flexibly and requires additional configuration and management, which increases complexity. For example, the IP address of a vehicle may change frequently, which leads to instability and configuration complexity.

[0007] ④ Security Challenge: Although VPN provides a certain level of security, additional security measures are still required to ensure the security of remote management, including complex access control, authentication, and certificate management, which increases the complexity of configuration and maintenance.

[0008] ⑤ Poor user experience: Due to performance degradation and latency issues, users may face poor experience during remote management, which is particularly evident in situations that require real-time response, such as real-time control and monitoring of vehicles.

[0009] The above shortcomings are interrelated, resulting in limitations and deficiencies in existing VPN technologies in some application scenarios. In the case of vehicles using mobile communication methods such as 4G, the dynamic IP characteristics may cause occasional disconnection, posing potential risks to operation and maintenance safety. For the remote management of vehicle onboard computers, a simpler, more efficient and more secure solution is needed to overcome these shortcomings and provide a better user experience. SSH reverse proxy technology solves these problems by making full use of the characteristics of the SSH protocol, providing a more attractive alternative.

[0010] Aiming at the technical challenges in vehicle operation and maintenance scenarios, especially the security issues of occasional disconnection in 4G communication environment. The present invention is based on SSH reverse proxy, making full use of the encryption and authentication functions of SSH, and providing a more attractive solution for vehicle remote management to solve the problems existing in VPN technology. The present invention can simplify configuration, improve performance, adapt to dynamic IP addresses, and provide a highly secure remote management experience, which is of great significance for the remote management of vehicle on-board computers. Secondly, the present invention constructs a set of solutions to maximize operation and maintenance security by introducing means such as backup bastion hosts and backup servers, and realizes immediate response and processing of disconnection situations. The dynamic response mechanism of the present invention effectively improves the security of the system and ensures the stability of the operation and maintenance process. In the event of an abnormality or disconnection of the main bastion host, the backup bastion host can switch seamlessly to ensure real-time monitoring and operation of the on-board computer. At the same time, the introduction of the backup server realizes double backup of operation and maintenance data, further reduces the risk of data loss, and improves the reliability of the overall system. Summary of the invention

[0011] The purpose of the present invention is to provide a vehicle operation and maintenance method, storage medium and device based on SSH reverse proxy, aiming to solve the above problems. In the scenario where the bastion host performs operation and maintenance on the vehicle's onboard computer, the present invention solves the problem that when the vehicle cluster uses mobile communication methods such as 4G, the bastion host cannot operate and maintain the assets due to the dynamic IP characteristics of mobile communication.

[0012] The present invention is mainly achieved through the following technical solutions: The vehicle operation and maintenance method based on SSH reverse proxy includes the following steps: Step S1: An Agent is installed on the vehicle, and the Agent establishes an SSH reverse proxy connection with the bastion host, so that the bastion host can access the vehicle computer; the Agent reports its own IP to the bastion host in real time based on the SSH reverse proxy; Step S2: Detect the connection status between the bastion host and the vehicle. If the connection is disconnected, proceed to step S3 to start the reconnection mechanism; Step S3: Try to re-establish the connection and determine whether the re-connection is successful. If successful, restore normal communication; otherwise, proceed to step S4 to start the emergency strategy; Step S4: If the connection cannot be established after repeating step S3 for multiple times, a disconnection message is sent to the standby server to determine whether the sending of the disconnection message is successful. If successful, the process proceeds to step S5 to wait for the standby server to detect activity. Step S5: After receiving the disconnection information, the standby server attempts to detect the current bastion host and check whether the current bastion host is still reachable. If the current bastion host is unreachable, the standby server triggers an alarm notification and enables the standby bastion host. At the same time, the standby server notifies the Agent to switch to the standby bastion host.

[0013] In order to better implement the present invention, further, step S1 includes the following steps: Step S101: Agent initialization; Step S102: The Agent obtains the MAC address of the vehicle; Step S103: The Agent generates an SSH key pair based on the acquired MAC address; Step S104: The Agent transmits the public key to the bastion host based on the initial authentication, and the Agent establishes a connection with the bastion host through the public key request; Step S105: The bastion host verifies the identity of the Agent through the SSH key provided by the Agent. If the identity verification is successful, the Agent successfully establishes a long SSH connection with the bastion host.

[0014] In order to better implement the present invention, further, in step S1, the bastion host maintains an SSH connection pool, and the bastion host maintains the established SSH connection in the SSH connection pool.

[0015] In order to better implement the present invention, further, the state transfer of the connection port in the SSH connection pool includes the following steps: Step A1: The starting point of the SSH connection is an initial state, and the initial state includes an idle state; Step A2: If an Agent requests a connection, the SSH connection is transferred from the idle state to the connecting state; Step A3: If the Agent connection is established successfully, the SSH connection is transferred from the connecting state to the connected state; in the connected state, if the connection pool port resources are insufficient, the SSH connection is transferred to the insufficient port resource state, triggering an alarm notification; Step A4: If the current Agent is disconnected, the SSH connection is transferred from the successful connection state to the reuse state, and then to the connecting state, so that other Agents can reuse it.

[0016] In order to better implement the present invention, further, in the step A3, in the connection success state, if the connection pool ports are sufficient, the following steps are included: Step B1: The SSH connection is transferred to the waiting state for the local forwarding request. If the operation and maintenance requests the local forwarding port, the SSH connection is transferred to the local forwarding state. Step B2: If the local forwarding port is established, the SSH connection is transferred to the local forwarding success state; Step B3: If the Agent sends heartbeats regularly, the SSH connection is transferred to the heartbeat-keeping state; Step B4: If the Agent heartbeat is received, the SSH connection is transferred to the local forwarding success state; Step B5: If the operation and maintenance personnel continue to use the local state, the SSH connection is transferred to the local forwarding state; Step B6: If the operation and maintenance releases the local forwarding port, the SSH connection is transferred to the waiting for local request state.

[0017] In order to better implement the present invention, further, in the step A3, in the connection success state, if the connection pool port is insufficient, the SSH connection is transferred to the port resource insufficient state, and an alarm notification and port resource release are triggered respectively; if the alarm has notified the relevant personnel, the SSH connection is transferred to the notified state; if the port connection is released, step A1 is entered, and the SSH connection is transferred to the idle state.

[0018] In order to better implement the present invention, further, in step S1, the bastion host establishes an asset record based on the MAC address transmitted by the Agent and the unique name of the vehicle for managing and tracking vehicle assets; the bastion host supports the operator to operate the vehicle where the Agent is located through the SSH reverse proxy port.

[0019] In order to better implement the present invention, further, the unique name is a unique identifier of the vehicle assigned by the bastion host.

[0020] A computer-readable storage medium stores a computer program, which implements the above method when executed by a processor.

[0021] An electronic device comprises a memory and a processor; the memory stores a computer program; the processor is used to execute the computer program in the memory to implement the above method.

[0022] The terms in this invention are explained as follows: Reverse Proxy is a network architecture model that acts as an intermediary between the client and the server, forwarding the client's request to one or more backend servers and returning the response to the client. Unlike the common forward proxy, which requests server resources on behalf of the client, the reverse proxy receives client requests on behalf of the server.

[0023] SSH (Secure Shell) is a network security protocol that implements security between devices through encryption and authentication mechanisms. Asset and user connections can be established through SSH.

[0024] Bastion Host is a term in the field of computer network and information security. It refers to a special computer system or server located between the internal network and the external network. The main purpose of the bastion host is to enhance the security of the network and provide a secure way to allow administrators or authorized users to securely access internal network resources from external networks (such as the Internet).

[0025] VPN (Virtual Private Network) is a network technology that creates an encrypted, secure connection to connect remote devices or networks to a private network, as if they were directly connected to the private network. The purpose of VPN is to provide a secure, private and anonymous network connection through encryption and tunneling technology to protect the confidentiality and integrity of data.

[0026] The beneficial effects of the present invention are as follows: (1) The present invention solves the problem that the bastion host cannot operate and maintain assets due to the dynamic IP characteristics of mobile communications. The present invention establishes, maintains and manages a secure SSH reverse proxy channel through the Agent. The present invention is based on the Agent and the SSH reverse proxy to achieve the effect of supporting active network detection and maintaining a long connection. The Agent can report its own IP and other information to the bastion host in real time. On the bastion host side, an SSH connection pool is maintained to facilitate the stable connection of the vehicle cluster, thereby achieving full state perception and real-time operation and maintenance control of all driving vehicles through the bastion host.

[0027] (2) The present invention can automatically detect disconnection and try to restore it to ensure the stability of the connection; when the connection is disconnected, the system will not give up immediately, but will try to re-establish the connection multiple times, thereby improving the reliability of the connection. Even if it still fails after multiple retries, the system can adopt emergency strategies to ensure the availability of the system. If the main bastion host is unavailable, the present invention starts the backup bastion host to take over the connection to ensure that the communication between the vehicle and the control center is not interrupted. Once a connection problem is found, especially when the backup bastion host is enabled, the present invention promptly links relevant personnel through the alarm notification function, which helps to take timely measures to solve the problem and has good practicality.

[0028] (3) The present invention makes the deployment and maintenance of the fleet more convenient through SSH reverse proxy technology, reduces technical requirements and reduces operating costs. Secondly, in the process of data transmission, the SSH reverse proxy technology reduces performance overhead without introducing additional delays. This is essential for vehicle applications that require real-time response and ensures the efficient operation of the vehicle's on-board computer. In addition, the present invention adapts to the environment of dynamic IP addresses and does not require frequent configuration updates. This provides support for the flexibility and scalability of the fleet without worrying about interruptions or configuration troubles that may be caused by IP address changes. Most importantly, the present invention provides a strong encryption and authentication mechanism based on SSH reverse proxy technology to ensure the security of remote management. This is essential for the sensitive data and functions contained in the vehicle's on-board computer and effectively prevents potential security threats. In summary, the present invention is not only feasible, but also highlights multiple key advantages, including simplified configuration, excellent performance, dynamic IP adaptability and strong security. This makes it an ideal choice for remote management of vehicle on-board computers, bringing unprecedented convenience and security to the vehicle industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 Flowchart for Agent to connect to the bastion host through SSH reverse proxy; Figure 2 This is a schematic diagram of the working state transfer of the connection port in the SSH connection pool; Figure 3 This is a flowchart of vehicle operation and maintenance management based on the bastion host. DETAILED DESCRIPTION

[0030] Embodiment 1: The vehicle operation and maintenance method based on SSH reverse proxy is that each vehicle is installed with a lightweight Agent, which is responsible for establishing an SSH reverse proxy connection with the bastion host so that the bastion host can access the vehicle's onboard computer and provide remote management support. The Agent has dynamic IP address adaptability and can automatically handle IP address changes. Based on SSH reverse proxy, the Agent supports active network detection and long connection, and reports its own IP and other information to the bastion host in real time. When the vehicle's onboard computer changes due to changes in the external environment, the Agent actively reports its own IP, which is conducive to the bastion host's real-time perception of assets and can avoid asset loss and information loss in both directions. On the bastion host side, a stable SSH connection pool is implemented for this scenario, which is in line with the stable connection to the vehicle cluster, so as to achieve full state perception and real-time operation and maintenance control of all driving vehicles through the bastion host.

[0031] The present invention introduces a lightweight Agent in the initial state of the bastion host, and cleverly overcomes the limitations of traditional operation and maintenance methods through the SSH reverse proxy method, realizing comprehensive perception and remote operation and maintenance control of the on-board computer. The lightweight Agent has a built-in advanced adaptive mechanism, which can automatically adjust according to the environment and configuration of different on-board computers to ensure efficient operation under various circumstances. This adaptive mechanism includes but is not limited to bandwidth optimization in a dynamic network environment, intelligent management of resource occupancy, etc. Secondly, when implementing the SSH reverse proxy, the present invention can monitor the dynamic IP changes of the on-board computer in real time, and dynamically adjust the connection parameters of the reverse proxy, thereby ensuring a stable connection at all times during the movement of the vehicle. This dynamic adjustment is based on real-time analysis of information such as vehicle location and network status, making our solution not just a simple reverse proxy, but a highly intelligent remote management.

[0032] In addition to SSH-based encrypted communication, the lightweight Agent of the present invention has built-in advanced identity authentication and authorization mechanisms to ensure that only authorized operation and maintenance personnel can access the vehicle computer. This security mechanism not only protects the privacy data of the vehicle system, but also provides a reliable basis for the audit of operation and maintenance behavior.

[0033] In general, the present invention not only solves the dilemma of traditional operation and maintenance methods in a dynamic network environment, but also makes in-depth optimizations in terms of intelligence and security, providing a new and efficient solution for remote management of driving vehicles. The present invention is no longer limited by the limitations of traditional static IP addresses, nor is it troubled by the bottleneck problem of VPN networks. This means that the operation and maintenance safety and remote control of vehicles can be carried out more efficiently and in real time, while ensuring a comprehensive audit of vehicle behavior. The application of the present invention will provide strong support for the development of intelligent transportation and autonomous driving technology.

[0034] Preferably, if Figure 1 As shown in the figure, the connection between Agent and bastion host includes the following steps: 1) Agent initialization: The starting point of the process, indicating that the Agent on the vehicle is initialized and ready to establish a connection.

[0035] 2) The Agent obtains the MAC address of the vehicle: The Agent obtains the MAC address through the vehicle for subsequent identification and recording of vehicle assets.

[0036] 3) The Agent generates an SSH key based on the MAC address: The Agent generates an SSH key pair based on the obtained MAC address, which will be used for subsequent secure communications.

[0037] 4) The agent passes the key to the bastion host: The agent passes the public key to the bastion host based on the initial authentication, which is part of establishing secure communication.

[0038] 5) The Agent actively establishes a connection with the bastion host through an SSH connection request: The Agent establishes a connection with the bastion host through a public key request for communication.

[0039] 6) Check whether the connection is successfully established. If the connection is successfully established, proceed to step 7).

[0040] 7) Bastion host verifies identity: The bastion host verifies the identity of the Agent, usually through the SSH key provided by the Agent.

[0041] 8) Check whether the identity authentication is successful. If the identity authentication is successful, go to step 9).

[0042] 9) SSH persistent connection established: A secure SSH persistent connection is successfully established for subsequent communications.

[0043] 10) The bastion host maintains the SSH connection pool: The bastion host maintains the established SSH connection in the connection pool for subsequent connection reuse.

[0044] 11) The bastion host creates an asset record based on the MAC address and unique name: The bastion host creates an asset record based on the MAC address and unique name (which may be a unique identifier assigned by the bastion host) passed by the Agent for the purpose of managing and tracking vehicle assets.

[0045] 12) The bastion host supports the operator to operate the vehicle where the Agent is located through the reverse proxy port: The bastion host is ready to allow the operator to operate the vehicle where the Agent is located through the reverse proxy port.

[0046] The above workflow covers the process of establishing a connection between the Agent and the bastion host, authentication, asset record creation, and subsequent operation and maintenance operations. This helps ensure safe and orderly management of vehicle assets and operations.

[0047] Preferably, since the vehicle cluster is relatively large, the bastion host needs to maintain an SSH connection pool to better improve the stability of the connection. Figure 2 As shown in the figure, during the operation of the connection pool, the status of the bastion host SSH connection pool port is transferred as follows: a. Initial state: The initial state is the starting point of the SSH connection pool, including the idle state.

[0048] b. Connecting: From the Idle state, the connection may move to the Connecting state, indicating that an Agent has requested a connection.

[0049] c. Connection success: The connecting state may be transferred to the connection success state, indicating that the connection has been successfully established. The connection success state also includes the processing of local forwarding requests and the maintenance of the Agent sending heartbeats regularly.

[0050] d. Reuse: From the Connected state, the connection may return to the Connecting state for reuse by other Agents.

[0051] e. Insufficient port resources: When the connection is successful, if the connection pool port resources are insufficient, the connection may enter the insufficient port resource state, triggering an alarm notification.

[0052] f. Alarm notification: If the connection enters the port resource shortage state, the bastion machine will trigger an alarm notification to notify relevant personnel.

[0053] These states and state transitions reflect the workflow of the SSH connection pool, including connection establishment, release, reuse, local forwarding, and alarm notification. This helps ensure the stability and availability of the connection pool, as well as timely handling of insufficient resources.

[0054] Preferably, if Figure 3 As shown, vehicle long connection maintenance includes the following steps: 1) Maintaining a persistent connection: In the initial state, the vehicle maintains communication with the bastion host through a persistent connection. This ensures the availability of real-time data transmission and remote operation.

[0055] 2) Reconnection mechanism: If a persistent connection is disconnected, the system will start the reconnection mechanism and try to reestablish the connection. If the connection is successful, the system will resume normal communication.

[0056] 3) Emergency strategy: If the connection fails after multiple retries, the system will initiate an emergency strategy, which will send a disconnection message to the backup server.

[0057] 4) Backup server detection: After receiving the disconnection information, the backup server will try to detect the primary bastion host to check whether the primary bastion host is still reachable.

[0058] 5) Backup bastion server activation: If the primary bastion server is unreachable, the backup server will trigger an alarm notification and activate the backup bastion server. This ensures that the connection will not be interrupted due to the failure of the primary bastion server.

[0059] 6) Notify switch: At the same time, the backup server will notify the Agent to switch to the backup bastion host to continue communication.

[0060] 7) Maintaining long connections: Once the backup bastion host is enabled, the system will continue to maintain long connections to ensure communication stability.

[0061] This process ensures that the connection between the vehicle and the bastion host is always available, whether through the primary bastion host or the backup bastion host. At the same time, the alarm notification also ensures that timely measures are taken to solve the connection problem, improving the reliability and availability of the system.

[0062] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification or equivalent change made to the above embodiment based on the technical essence of the present invention shall fall within the protection scope of the present invention.

Claims

1. Vehicle operation and maintenance method based on SSH reverse proxy, It is characterized in that The following steps are involved: Step S1: An Agent is installed on the vehicle, and the Agent establishes an SSH reverse proxy connection with the bastion host, so that the bastion host can access the vehicle computer; the Agent reports its own IP to the bastion host in real time based on the SSH reverse proxy; Step S2: Detect the connection status between the bastion host and the vehicle. If the connection is disconnected, proceed to step S3 to start the reconnection mechanism; Step S3: Try to re-establish the connection and determine whether the re-connection is successful. If successful, resume normal communication; Otherwise, proceed to step S4 to start the emergency strategy; Step S4: If the connection cannot be established after repeating step S3 for multiple times, a disconnection message is sent to the standby server to determine whether the sending of the disconnection message is successful. If successful, the process proceeds to step S5 to wait for the standby server to detect activity. Step S5: After receiving the disconnection information, the standby server attempts to detect the current bastion host and check whether the current bastion host is still reachable. If the current bastion host is unreachable, the standby server triggers an alarm notification and enables the standby bastion host. At the same time, the standby server notifies the Agent to switch to the standby bastion host.

2. The vehicle operation and maintenance method based on SSH reverse proxy according to claim 1, It is characterized in that The step S1 comprises the following steps: Step S101: Agent initialization; Step S102: The Agent obtains the MAC address of the vehicle; Step S103: The Agent generates an SSH key pair based on the acquired MAC address; Step S104: The Agent transmits the public key to the bastion host based on the initial authentication, and the Agent establishes a connection with the bastion host through the public key request; Step S105: The bastion host verifies the identity of the Agent through the SSH key provided by the Agent. If the identity verification is successful, the Agent successfully establishes a long SSH connection with the bastion host.

3. According to the vehicle operation and maintenance method based on SSH reverse proxy according to claim 1 or 2, It is characterized in that In step S1, the bastion host maintains an SSH connection pool, and the bastion host maintains the established SSH connection in the SSH connection pool.

4. The vehicle operation and maintenance method based on SSH reverse proxy according to claim 3, It is characterized in that The state transfer of the connection port in the SSH connection pool includes the following steps: Step A1: The starting point of the SSH connection is an initial state, and the initial state includes an idle state; Step A2: If an Agent requests a connection, the SSH connection is transferred from the idle state to the connecting state; Step A3: If the Agent connection is established successfully, the SSH connection is transferred from the connecting state to the connected state; in the connected state, if the connection pool port resources are insufficient, the SSH connection is transferred to the port resource insufficient state, triggering an alarm notification; Step A4: If the current Agent is disconnected, the SSH connection is transferred from the successful connection state to the reuse state, and then to the connecting state, so that other Agents can reuse it.

5. The vehicle operation and maintenance method based on SSH reverse proxy according to claim 4, It is characterized in that In the step A3, in the connection success state, if the connection pool ports are sufficient, the following steps are included: Step B1: The SSH connection is transferred to the waiting state for the local forwarding request. If the operation and maintenance requests the local forwarding port, the SSH connection is transferred to the local forwarding state. Step B2: If the local forwarding port is established, the SSH connection is transferred to the local forwarding success state; Step B3: If the Agent sends heartbeats regularly, the SSH connection is transferred to the heartbeat-keeping state; Step B4: If the Agent heartbeat is received, the SSH connection is transferred to the local forwarding success state; Step B5: If the operation and maintenance personnel continue to use the local state, the SSH connection is transferred to the local forwarding state; Step B6: If the operation and maintenance releases the local forwarding port, the SSH connection is transferred to the waiting for local request state.

6. The vehicle operation and maintenance method based on SSH reverse proxy according to claim 4, It is characterized in that In step A3, in the connection success state, if the connection pool port is insufficient, the SSH connection is transferred to the port resource insufficient state, and an alarm notification and port resource release are triggered respectively; if the alarm has been notified to the relevant personnel, the SSH connection is transferred to the notified state; If the port connection is released, the process proceeds to step A1, and the SSH connection is transferred to an idle state.

7. The vehicle operation and maintenance method based on SSH reverse proxy according to claim 1 or 2, It is characterized in that In step S1, the bastion host creates an asset record based on the MAC address and the unique name of the vehicle transmitted by the Agent for managing and tracking vehicle assets; the bastion host supports the operator to operate the vehicle where the Agent is located through the SSH reverse proxy port.

8. The vehicle operation and maintenance method based on SSH reverse proxy according to claim 7, It is characterized in that The unique name is the unique identifier of the vehicle assigned by the bastion host.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

10. An electronic device, It is characterized in that The invention comprises a memory and a processor; the memory stores a computer program; the processor is used to execute the computer program in the memory to implement the method according to any one of claims 1 to 8.