A method and device for accessing

Receive and process access requests from terminal devices through the external network SSH server, and use the intranet firewall release port to transmit encrypted content to the BMC, which solves the problem of time-consuming firewall policy adjustment and improves access speed and security.

CN114189370BActive Publication Date: 2024-09-06NEW H3C CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111447614.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-09-06
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

In a network scenario where firewall devices are installed on the intranet, external network terminal devices cannot directly access designated services provided by the BMC in the intranet server. Professional network administrators are required to change the firewall access permission policy, resulting in long access times and poor user experience.

Method used

Receive the access request message from the terminal device through the SSH server in the external network, establish a connection with the virtual BMC according to the locally configured connection information, and send the encrypted access content to the BMC through the port allowed by the intranet firewall for processing, and finally decrypt it. The response results are fed back to the terminal device, avoiding the need to change the firewall policy.

Benefits of technology

It enables external network terminal devices to access intranet BMC services without adjusting firewall policies, shortens access time, improves user experience, and improves access security through encrypted transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114189370B
    Figure CN114189370B
Patent Text Reader

Abstract

The present application provides an access method and device. The method is applied to an SSH server in an external network, and includes: receiving an access request message sent by a terminal device in the external network through a first port on the SSH server; determining the BMC that needs to process the relevant access content according to the first port; encrypting the access content according to a preset encryption algorithm, and sending the encrypted access content to a target server through a second port on the SSH server that is released by a firewall device in the internal network; when receiving the encrypted processing result obtained by the BMC after processing the access content sent by the target server through the second port, decrypting the encrypted processing result according to a preset decryption algorithm, and sending an access response message carrying the decrypted processing result to the terminal device through the first port. The present application can improve the access experience of terminal devices in the external network accessing the designated services provided by the BMC in the server in the internal network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an access method and device. Background Art

[0002] The server in the intranet is usually equipped with a baseboard management controller (BMC), which can provide access to specified services for terminal devices in the external network. For example, the specified service can be a web browsing service, a virtual network computer (VNC) service, etc., to manage various parameter information of the motherboard, such as the temperature of the CPU, memory, hard disk, fan, etc.

[0003] When a terminal device in the external network needs to access a specified service provided by the BMC in a server in the internal network, in a network scenario where no firewall device is set in the internal network, the terminal device can usually directly access the specified service provided by the BMC in the server; in a network scenario where a firewall device is set in the internal network, it is restricted by the access permission policy of the firewall device, for example, the terminal device in the external network is not allowed to access the internal network, and the terminal device usually cannot directly access the specified service. In this case, a professional network administrator is often required to change the relevant access permission policy of the firewall device on site to enable the terminal device to access the specified service. As a result, the access takes a long time, resulting in a poor access experience for the relevant users. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides an access method and device.

[0005] According to a first aspect of an embodiment of the present application, an access method is provided, the method being applied to a secure shell (SSH) server in an external network, the method comprising:

[0006] receiving an access request message sent by a terminal device in the external network through the first port on the SSH server, wherein the access request message is generated and sent by the terminal device after establishing a connection relationship with the SSH server according to the connection information of the SSH server configured locally for connecting to the virtual BMC corresponding to the BMC when the terminal device needs to access a designated service provided by the BMC in the target server in the intranet, and the connection information includes at least the IP address of the SSH server and the first port;

[0007] Determine, according to the first port, the BMC that needs to process the access content requested by the access request message;

[0008] Encrypt the access content according to a preset encryption algorithm, and send the encrypted access content to the target server through the second port on the SSH server that is released by the firewall device in the intranet;

[0009] When the encrypted processing result obtained by the BMC processing the access content and sent by the target server is received through the second port, the encrypted processing result is decrypted according to the preset decryption algorithm corresponding to the preset encryption algorithm, and an access response message carrying the decrypted processing result is sent to the terminal device through the first port.

[0010] According to a second aspect of an embodiment of the present application, an access device is provided, the device being applied to an SSH server in an external network, the device comprising:

[0011] a receiving module, configured to receive an access request message sent by a terminal device in the external network through a first port on the SSH server, wherein the access request message is generated and sent by the terminal device after establishing a connection relationship with the SSH server according to the connection information of the SSH server configured locally for connecting to the virtual BMC corresponding to the BMC when the terminal device needs to access a designated service provided by the BMC in the target server in the intranet, and the connection information at least includes the IP address of the SSH server and the first port;

[0012] A determination module, configured to determine, according to the first port, the BMC that needs to process the access content requested by the access request message;

[0013] A first processing module, configured to encrypt the access content according to a preset encryption algorithm, and send the encrypted access content to the target server through a second port on the SSH server that is released by the firewall device in the intranet;

[0014] The second processing module is used to decrypt the encrypted processing result obtained by the BMC after processing the access content and sent by the target server through the second port according to a preset decryption algorithm corresponding to the preset encryption algorithm, and send an access response message carrying the decrypted processing result to the terminal device through the first port.

[0015] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0016] In an embodiment of the present application, in a network scenario where a firewall device is provided in the intranet and an access permission policy is configured that does not allow terminal devices in the external network to access the intranet, when the terminal device in the external network needs to access the specified service provided by the BMC in the server in the intranet, it can directly establish a connection relationship with the SSH server based on the connection information of the SSH server configured locally for connecting to the virtual BMC corresponding to the BMC, and send the relevant access request message to the SSH server; subsequently, the SSH server further determines the BMC that needs to process the access content requested by the relevant access request message, and sends the relevant access content to the BMC in an encrypted manner for processing through its own port released by the firewall device in the intranet, and finally feeds back the processing result returned by the BMC in an encrypted manner in an access response message to the terminal device.

[0017] In this way, there is no need for the network administrator to go to the site to change the access permission policy of the firewall device, that is, there is no need to adjust the access permission policy of the firewall device, and the terminal device can access the specified service, which takes less time and improves the access experience of relevant users; and the terminal device will not know the real IP address and port of the BMC, and the relevant access content and related processing results are transmitted between the SSH server and the BMC in an encrypted manner, further improving access security.

[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0020] Figure 1 One of the flowcharts of an access method provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of a network applicable to an access method provided in an embodiment of the present application;

[0022] Figure 3 A schematic diagram of the structure of an access device provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0025] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0026] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0027] Next, the embodiments of the present application are described in detail.

[0028] The present application embodiment provides an access method, which is applied to an SSH server in an external network, such as Figure 1 As shown, the method may include the following steps:

[0029] S11. Receive an access request message sent by a terminal device in the external network through a first port on the SSH server.

[0030] In this step, the access request message is generated and sent by the terminal device after establishing a connection relationship with the SSH server according to the connection information of the SSH server configured locally for connecting to the virtual BMC corresponding to the BMC when the terminal device needs to access the specified service provided by the BMC in the target server in the intranet, and the connection information includes at least the IP address and the first port of the SSH server.

[0031] Here, the designated service may be a web browsing service (eg, a Telnet service, a Subversion, SVN service, etc.), a VNC service, etc. For example, when the designated service is a web browsing service, the access request message may be a Web access request message.

[0032] S12: Determine, according to the first port, a BMC that needs to process the access content requested by the access request message.

[0033] S13. Encrypt the access content according to a preset encryption algorithm, and send the encrypted access content to the target server through the second port on the SSH server that is released by the firewall device in the intranet.

[0034] S14. When receiving the encrypted processing result obtained by the BMC after processing the access content and sent by the target server through the second port, decrypt the encrypted processing result according to the preset decryption algorithm corresponding to the preset encryption algorithm, and send an access response message carrying the decrypted processing result to the terminal device through the first port.

[0035] It should be noted that, in an embodiment of the present application, in a network scenario where a firewall device is provided in the intranet and an access permission policy is configured that does not allow terminal devices in the external network to access the intranet, in order to improve the user's access experience, the network administrator can configure connection information for connecting to the SSH server that is the virtual BMC corresponding to each BMC on a terminal device in the external network that has a need to access a specified service provided by the BMC in at least one server in the intranet. Each piece of connection information may include the IP address, port (i.e., the first port), user name, password, etc. of the corresponding SSH server.

[0036] Here, the SSH servers corresponding to the BMCs in multiple servers may be the same, completely different, or partially the same. In the case where the same SSH server corresponds to the BMCs in multiple servers, the network administrator will configure a connection information for each BMC to connect to the SSH server. The IP address of the SSH server in these connection information is the same, but the port, user name, and password of the SSH server are different.

[0037] When the terminal device needs to access a designated service provided by a certain BMC, it can first establish a connection relationship with the SSH server based on the connection information used to connect to the SSH server as the virtual BMC corresponding to the BMC. Specifically, the terminal device can send a connection establishment request to the SSH server based on the IP address and port of the SSH server included in the connection information, and the connection establishment request carries the user name and password included in the connection information; the SSH server performs a legitimacy authentication on the terminal device based on the user name and password carried in the connection establishment request, and sends a connection establishment response to the terminal device when the authentication result is a legitimate terminal, that is, the terminal device successfully establishes a connection relationship with the SSH server.

[0038] Here, for the SSH server, when receiving a connection establishment request from any terminal device, once the terminal device is authenticated as an illegal terminal based on the username and password carried in the connection establishment request, the connection establishment request is discarded.

[0039] Then, after the terminal device establishes a connection with the SSH server, the terminal device can generate an access request message for accessing the specified service and send it to the SSH server; the above steps S11 to S14 are subsequently executed by the SSH server to enable the terminal device to successfully access the specified service. During the entire access process, there is no need for the network administrator to go to the site to change the access permission policy of the firewall device, that is, there is no need to adjust the access permission policy of the firewall device to enable the terminal device to access the specified service, which takes less time, thereby improving the access experience of the relevant users; and the terminal device will not know the real IP address and port of the BMC, and the relevant access content and related processing results are transmitted between the SSH server and the BMC in an encrypted manner, further improving the access security.

[0040] Specifically, in the above step S12, the SSH server may determine the BMC that needs to process the access content requested by the access request message in the following manner:

[0041] In the correspondence relationship between the third port on the server where each BMC corresponding to the locally configured SSH server is located and the first port on the SSH server and the terminal device accessing the designated service provided by each BMC, searching for the third port corresponding to the first port, wherein any third port in the correspondence relationship uniquely corresponds to one first port;

[0042] The BMC in the server where the found third port is located is determined as the BMC that needs to process the access content requested by the access request message.

[0043] For example, suppose that a network administrator configures an SSH server in an external network as BMC1 in Server 1, BMC2 in Server 2, and BMC3 in Server 3 in an internal network. Suppose that the port through which Server 1 communicates with the SSH server is Port 11, the port through which Server 2 communicates with the SSH server is Port 12, and the port through which Server 3 communicates with the SSH server is Port 13.

[0044] Assume that the network administrator configures the port on the SSH server for communicating with the terminal devices of the specified services provided by BMC1 in access server 1 to be port 14, the port for communicating with the terminal devices of the specified services provided by BMC2 in access server 2 to be port 15, and the port for communicating with the terminal devices of the specified services provided by BMC31 in access server 3 to be port 16.

[0045] Then, the network administrator will configure three pairs of correspondence on the SSH server, namely port 11 corresponds to port 14, port 12 corresponds to port 15, and port 13 corresponds to port 16.

[0046] In the above step S13, when the SSH server encrypts the access content according to the RAS asymmetric encryption algorithm, it can specifically encrypt the access content according to the RAS asymmetric encryption algorithm.

[0047] Of course, the SSH server can also encrypt the access content according to other encryption algorithms applicable to the SSH protocol, which are not listed here one by one.

[0048] In the above step S14, when the SSH server decrypts the encrypted processing result according to the preset decryption algorithm corresponding to the preset encryption algorithm, it can specifically decrypt the encrypted processing result according to the RAS asymmetric decryption algorithm corresponding to the RAS asymmetric encryption algorithm.

[0049] Of course, the SSH server can also decrypt the encrypted processing result according to other decryption algorithms corresponding to other encryption algorithms applicable to the SSH protocol, which are not listed here one by one.

[0050] The above access method is described in detail below in conjunction with specific embodiments.

[0051] like Figure 2 As shown, it is assumed that the local side of the terminal device 21 in the external network is configured with connection information for connecting to the SSH server 22 which is the virtual BMC corresponding to the BMC in the three servers. Figure 2 Only the BMC in one server (ie, BMC241 in server 24) is shown, and the corresponding connection information includes IP1, port A0, user name 1 and password 1. The other two servers are not shown.

[0052] When the terminal device 21 needs to access the web browsing service 1 of the BMC 241 in the server 24 , the terminal device 21 first sends a connection establishment request carrying the username 1 and the password 1 to the SSH server 22 based on the IP 1 and the port A0 .

[0053] The SSH server 22 will authenticate the legitimacy of the terminal device 21 based on the username 1 and password 1. Since the local side is configured with the username 1 and password 1, the authentication result is that the terminal device 21 is a legitimate terminal. At this time, the SSH server 22 will send a connection establishment response to the terminal device 21, that is, the terminal device 21 successfully establishes a connection relationship with the SSH server 22.

[0054] After the terminal device 21 establishes a connection relationship with the SSH server 22 , the terminal device 21 generates a Web access request message 1 for accessing the web browsing service 1 , and sends the message to the SSH server 22 .

[0055] The SSH server 22 receives the Web access request message 1 through port A0, and then searches for the port corresponding to port A0 (for example, port Y0) in the correspondence between the ports on the servers where the BMCs corresponding to the locally configured SSH server 22 are located and the ports on the SSH server 22 and the terminals that access the web browsing service 1 provided by BMC241; and determines the BMC (i.e., BMC241) in the server (i.e., server 24) where the found port is located as the BMC that needs to process the access content 1 requested by the Web access request message 1.

[0056] Then, the SSH server 22 encrypts the access content 1 according to the RAS asymmetric encryption algorithm, and sends the encrypted access content 1 to the server 24 through the port (for example, port 22) on the SSH server 22 that is released by the firewall device 23 in the intranet.

[0057] After receiving the encrypted access content 1 through port Y0, server 24 sends it to port B0 of BMC241. BMC241 decrypts the encrypted access content 1 according to the RAS asymmetric decryption algorithm corresponding to the RAS asymmetric encryption algorithm to obtain access content 1, processes the access content 1 to obtain the processing result 1, and encrypts the processing result 1 according to the RAS asymmetric encryption algorithm.

[0058] Next, the server 24 sends the encrypted processing result 1 to the SSH server 22 via port Y0.

[0059] The SSH server 22 will receive the encrypted processing result 1 sent by the server 24 through port 22. After that, the SSH server 22 will decrypt the encrypted processing result 1 according to the RAS asymmetric decryption algorithm corresponding to the RAS asymmetric encryption algorithm, and send an access response message carrying the decrypted processing result 1 to the terminal device 21 through port A0.

[0060] It can be seen from the above technical scheme that in the embodiment of the present application, in a network scenario where a firewall device is provided in the intranet and an access permission policy is configured that does not allow terminal devices in the external network to access the intranet, when the terminal device in the external network needs to access the specified service provided by the BMC in the server in the intranet, it can directly establish a connection relationship with the SSH server based on the connection information of the SSH server configured locally for connecting to the virtual BMC corresponding to the BMC, and send the relevant access request message to the SSH server; subsequently, the SSH server further determines the BMC that needs to process the access content requested by the relevant access request message, and sends the relevant access content to the BMC in an encrypted manner through its own port released by the firewall device in the intranet for processing, and finally carries the processing result returned by the BMC in an encrypted manner in the access response message and feeds it back to the terminal device.

[0061] In this way, there is no need for the network administrator to go to the site to change the access permission policy of the firewall device, that is, there is no need to adjust the access permission policy of the firewall device, and the terminal device can access the specified service, which takes less time and improves the access experience of relevant users; and the terminal device will not know the real IP address and port of the BMC, and the relevant access content and related processing results are transmitted between the SSH server and the BMC in an encrypted manner, further improving access security.

[0062] Based on the same inventive concept, the present application also provides an access device, which is applied to an SSH server in an external network, and its structural diagram is shown in FIG. Figure 3 As shown, specifically including:

[0063] A receiving module 31 is configured to receive an access request message sent by a terminal device in the external network through a first port on the SSH server, wherein the access request message is sent by the terminal device after establishing a connection relationship with the SSH server according to the connection information of the SSH server configured locally for connecting to the virtual BMC corresponding to the BMC when the terminal device needs to access a designated service provided by the BMC in the target server in the intranet, wherein the connection information at least includes the IP address of the SSH server and the first port;

[0064] A determination module 32, configured to determine, according to the first port, the BMC that needs to process the access content requested by the access request message;

[0065] The first processing module 33 is used to encrypt the access content according to a preset encryption algorithm, and send the encrypted access content to the target server through the second port on the SSH server that is released by the firewall device in the intranet;

[0066] The second processing module 34 is used to decrypt the encrypted processing result obtained by the BMC after processing the access content and sent by the target server through the second port according to a preset decryption algorithm corresponding to the preset encryption algorithm, and send an access response message carrying the decrypted processing result to the terminal device through the first port.

[0067] Preferably, the determining module 32 is specifically configured to determine the BMC that needs to process the access content requested by the access request message in the following manner:

[0068] In the correspondence relationship between the third port for communicating with the SSH server on the server where each BMC corresponding to the locally configured SSH server is located and the first port on the SSH server for communicating with each terminal device accessing the specified service, searching for the third port corresponding to the first port, wherein any third port in the correspondence relationship uniquely corresponds to one first port;

[0069] The BMC in the server where the found third port is located is determined as the BMC that needs to process the access content requested by the access request message.

[0070] Preferably, the first processing module 33 is specifically used for:

[0071] The access content is encrypted according to the RAS asymmetric encryption algorithm.

[0072] Preferably, the second processing module 34 is specifically used for:

[0073] The encrypted processing result is decrypted according to the RAS asymmetric decryption algorithm corresponding to the RAS asymmetric encryption algorithm.

[0074] Preferably, the designated service is a web browsing service or a VNC service.

[0075] It can be seen from the above technical scheme that in the embodiment of the present application, in a network scenario where a firewall device is provided in the intranet and an access permission policy is configured that does not allow terminal devices in the external network to access the intranet, when the terminal device in the external network needs to access the specified service provided by the BMC in the server in the intranet, it can directly establish a connection relationship with the SSH server based on the IP address and port of the SSH server that is locally configured as the virtual BMC corresponding to the BMC, and send the relevant access request message to the SSH server; subsequently, the SSH server further determines the BMC that needs to process the access content requested by the relevant access request message, and sends the relevant access content to the BMC in an encrypted manner through its own port that is released by the firewall device in the intranet for processing, and finally carries the processing result returned by the BMC in an encrypted manner in an access response message and feeds it back to the terminal device.

[0076] In this way, there is no need for the network administrator to go to the site to change the access permission policy of the firewall device, that is, there is no need to adjust the access permission policy of the firewall device, and the terminal device can access the specified service, which takes less time and improves the access experience of relevant users; and the terminal device will not know the real IP address and port of the BMC, and the relevant access content and related processing results are transmitted between the SSH server and the BMC in an encrypted manner, further improving access security.

[0077] The present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 41 and a machine-readable storage medium 42, wherein the machine-readable storage medium 42 stores machine-executable instructions that can be executed by the processor 41, and the processor 41 is prompted by the machine-executable instructions to implement the steps of the above-mentioned access method.

[0078] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.

[0079] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0080] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the access method described above are implemented.

[0081] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method of access, It is characterized in that The method is applied to a secure shell (SSH) server in an external network, and the method comprises: Receiving an access request message sent by a terminal device in the external network through a first port on the SSH server, wherein the access request message is generated and sent by the terminal device after establishing a connection relationship with the SSH server according to the connection information of the SSH server configured locally for connecting to the virtual BMC corresponding to the BMC when the terminal device needs to access a designated service provided by a baseboard management controller BMC in a target server in the intranet, and the connection information includes at least an IP address of the SSH server and the first port; Determine, according to the first port, the BMC that needs to process the access content requested by the access request message; Encrypt the access content according to a preset encryption algorithm, and send the encrypted access content to the target server through the second port on the SSH server that is released by the firewall device in the intranet; When receiving the encrypted processing result obtained by the BMC after processing the access content and sent by the target server through the second port, decrypting the encrypted processing result according to a preset decryption algorithm corresponding to the preset encryption algorithm, and sending an access response message carrying the decrypted processing result to the terminal device through the first port; The BMC that needs to process the access content requested by the access request message is determined in the following manner: In the correspondence relationship between the third port for communicating with the SSH server on the server where each BMC corresponding to the locally configured SSH server is located and the first port on the SSH server for communicating with each terminal device accessing the specified service, searching for the third port corresponding to the first port, wherein any third port in the correspondence relationship uniquely corresponds to one first port; The BMC in the server where the found third port is located is determined as the BMC that needs to process the access content requested by the access request message.

2. The method according to claim 1, It is characterized in that The access content is encrypted according to a preset encryption algorithm, specifically including: The access content is encrypted according to the RAS asymmetric encryption algorithm.

3. The method according to claim 2, It is characterized in that Decrypt the encrypted processing result according to the preset decryption algorithm, including: The encrypted processing result is decrypted according to the RAS asymmetric decryption algorithm corresponding to the RAS asymmetric encryption algorithm.

4. The method according to claim 1, It is characterized in that The designated service is a web browsing service or a virtual network computer VNC service.

5. An access device, It is characterized in that The device is applied to a secure shell (SSH) server in an external network, and comprises: A receiving module, configured to receive an access request message sent by a terminal device in the external network through a first port on the SSH server, wherein the access request message is generated and sent by the terminal device after establishing a connection relationship with the SSH server according to the connection information of the SSH server configured locally for connecting to the virtual BMC corresponding to the BMC when the terminal device needs to access a designated service provided by a baseboard management controller BMC in a target server in the internal network, and the connection information at least includes an IP address of the SSH server and the first port; A determination module, configured to determine, according to the first port, the BMC that needs to process the access content requested by the access request message; A first processing module, configured to encrypt the access content according to a preset encryption algorithm, and send the encrypted access content to the target server through a second port on the SSH server that is released by the firewall device in the intranet; a second processing module, configured to, when receiving the encrypted processing result obtained by the BMC after processing the access content and sent by the target server through the second port, decrypt the encrypted processing result according to a preset decryption algorithm corresponding to a preset encryption algorithm, and send an access response message carrying the decrypted processing result to the terminal device through the first port; The determining module is specifically configured to determine the BMC that needs to process the access content requested by the access request message in the following manner: In the correspondence relationship between the third port for communicating with the SSH server on the server where each BMC corresponding to the locally configured SSH server is located and the first port on the SSH server for communicating with each terminal device accessing the specified service, searching for the third port corresponding to the first port, wherein any third port in the correspondence relationship uniquely corresponds to one first port; The BMC in the server where the found third port is located is determined as the BMC that needs to process the access content requested by the access request message.

6. The device according to claim 5, It is characterized in that The first processing module is specifically used for: The access content is encrypted according to the RAS asymmetric encryption algorithm.

7. The device according to claim 6, It is characterized in that The second processing module is specifically used for: The encrypted processing result is decrypted according to the RAS asymmetric decryption algorithm corresponding to the RAS asymmetric encryption algorithm.

8. The device according to claim 5, It is characterized in that The designated service is a web browsing service or a virtual network computer VNC service.