METHOD, DEVICE AND SYSTEM FOR LOGGING IN UNIX-LIKE VIRTUAL CONTAINER
First Claim
1. A method for logging in a Unix-like virtual container, comprising:
- establishing a corresponding relationship between a Unix-like virtual container and a port on a host running the Unix-like virtual container;
establishing a transparent pipe between the Unix-like virtual container and the host port based on the corresponding relationship, and establishing a first connection between the Unix-like virtual container and the host port based on the transparent pipe; and
receiving a script command through the host port, and sending the script command to the Unix-like virtual container according to the first connection;
wherein after receiving the script command through the host port and before sending the script command to the Unix-like virtual container, the method further comprises;
partitioning the script command according to a preset marker and performing symbol extension to the partitioned script command to obtain a symbol-extended script command;
determining whether the symbol-extended script command is included in a preset script command whitelist; and
in response to determining that the symbol-extended script command is included in the preset script command whitelist, sending the symbol-extended script command to the Unix-like virtual container according to the first connection.
1 Assignment
0 Petitions
Accused Products
Abstract
Various embodiments of the present disclosure describe a method, apparatus and system for logging in a Unix-like virtual container. The method include establishing a corresponding relationship between a Unix-like virtual container and a port on a host running the Unix-like virtual container; establishing a transparent pipe between the Unix-like virtual container and the host port based on the corresponding relationship, establishing a first connection between the Unix-like virtual container and the host port based on the transparent pipe; receiving a script command through the host port, and sending the script command to the Unix-like virtual container according to the first connection. Employing embodiments of the present disclosure, the Unix-like virtual container can be logged in through the connection between the host port and the Unix-like virtual container, the information security of the Unix-like virtual container can be ensured, and the access efficiency can be improved through asynchronous access.
-
Citations
16 Claims
-
1. A method for logging in a Unix-like virtual container, comprising:
-
establishing a corresponding relationship between a Unix-like virtual container and a port on a host running the Unix-like virtual container; establishing a transparent pipe between the Unix-like virtual container and the host port based on the corresponding relationship, and establishing a first connection between the Unix-like virtual container and the host port based on the transparent pipe; and receiving a script command through the host port, and sending the script command to the Unix-like virtual container according to the first connection; wherein after receiving the script command through the host port and before sending the script command to the Unix-like virtual container, the method further comprises; partitioning the script command according to a preset marker and performing symbol extension to the partitioned script command to obtain a symbol-extended script command; determining whether the symbol-extended script command is included in a preset script command whitelist; and in response to determining that the symbol-extended script command is included in the preset script command whitelist, sending the symbol-extended script command to the Unix-like virtual container according to the first connection. - View Dependent Claims (3, 4, 5, 6, 7)
-
-
2. (canceled)
-
8. An apparatus for logging in a Unix-like virtual container, comprising:
-
a transparent pipe establishing module, configured to establish a corresponding relationship between a Unix-like virtual container and a port on a host running the Unix-like virtual container, and establish a transparent pipe between the Unix-like virtual container and the host port based on the corresponding relationship; a connection establishing module, configured to establish a first connection between the Unix-like virtual container and the host port based on the transparent pipe; and a script command sending module, configured to receive a script command through the host port and send the script command to the Unix-like virtual container according to the first connection; a script command preprocessing module, configured to partition the script command according to a preset marker, perform symbol extension to the partitioned script command to obtain a symbol-extended script command, determine whether the symbol-extended script command is included in a preset script command whitelist, and in response to determining that the symbol-extended script command is included in the preset script command whitelist, enable the script command sending module to send the symbol-extended script command to the Unix-like virtual container according to the first connection. - View Dependent Claims (10, 11, 12)
-
-
9. (canceled)
-
13. A system for logging in a Unix-like virtual container, comprising a Web browser, a Unix-like virtual container login apparatus, and a host;
- wherein the host runs a Unix-like virtual container and there is a hypertext transfer protocol (HTTP) connection between the Web browser and the Unix-like virtual container login apparatus;
wherein the Web browser is configured to receive a script command and send the script command to the Unix-like virtual container login apparatus through the HTTP connection; and the Unix-like virtual container login apparatus is configured to establish a corresponding relationship between the Unix-like virtual container and a port on the host, and establish a transparent pipe between the Unix-like virtual container and the host port based on the corresponding relationship, establish a first connection between the Unix-like virtual container and the host port based on the transparent pipe, receive the script command sent from the Web browser through the host port, and send the script command to the Unix-like virtual container according to the first connection; wherein the Unix-like virtual container login apparatus is further configured to partition the script command according to a preset marker, perform symbol extension to the partitioned script command to obtain a symbol-extended script command, determine whether the symbol-extended script command is included in a preset script command whitelist, and in response to determining that the symbol-extended script command is included in the preset script command whitelist, send the symbol-extended script command to the Unix-like virtual container according to the first connection. - View Dependent Claims (15, 16)
- wherein the host runs a Unix-like virtual container and there is a hypertext transfer protocol (HTTP) connection between the Web browser and the Unix-like virtual container login apparatus;
-
14. (canceled)
Specification