CN111314452A - Shell access method, device, equipment and storage medium of cloud mobile phone - Google Patents

Shell access method, device, equipment and storage medium of cloud mobile phone Download PDF

Info

Publication number
CN111314452A
CN111314452A CN202010083604.2A CN202010083604A CN111314452A CN 111314452 A CN111314452 A CN 111314452A CN 202010083604 A CN202010083604 A CN 202010083604A CN 111314452 A CN111314452 A CN 111314452A
Authority
CN
China
Prior art keywords
mobile phone
cloud mobile
shell
connection
control server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010083604.2A
Other languages
Chinese (zh)
Other versions
CN111314452B (en
Inventor
毛龙兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anchao Cloud Software Co Ltd
Original Assignee
Anchao Cloud Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anchao Cloud Software Co Ltd filed Critical Anchao Cloud Software Co Ltd
Priority to CN202010083604.2A priority Critical patent/CN111314452B/en
Publication of CN111314452A publication Critical patent/CN111314452A/en
Application granted granted Critical
Publication of CN111314452B publication Critical patent/CN111314452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a Shell access method, a device, equipment and a storage medium of a cloud mobile phone. And then, the address information of the target cloud mobile phone, which is sent by the control server based on the unique identifier and the Shell connection instruction, is received, and a connection request is sent according to the address information, so that after the successful connection information is received, a Shell simulation picture is displayed. Therefore, data transmission can be carried out between the connected web console and the target cloud mobile phone without a control server, the real-time performance is higher, the time delay is smaller, and the quick access to the cloud mobile phone Shell is realized. In addition, quick access to the cloud mobile phone Shell can be realized by logging in the web console, a special client does not need to be installed, and the method has universality.

Description

Shell access method, device, equipment and storage medium of cloud mobile phone
Technical Field
The application relates to the technical field of cloud, in particular to a Shell access method and device of a cloud mobile phone, an electronic device and a readable storage medium.
Background
The cloud mobile phone mainly refers to a mobile phone system running in the cloud and running through a virtualization technology. The cloud mobile phone fully utilizes the characteristics of a mobile broadband network and the mobile phone always on line and the characteristics of a cloud technology, the mobile phone is connected with the whole network system, a user can also host various application programs to the cloud end in a state of being separated from a mobile terminal, the all-weather on-line state is kept, and the application virtualization of the smart phone is comprehensively realized.
In the actual application process of the cloud mobile phone, a user needs to connect a Shell (command line) on the cloud mobile phone to realize the operation of the relevant instruction. Therefore, how to realize quick access to the Shell command line on the cloud mobile phone becomes a key point of the cloud mobile phone technology. At present, most of cloud mobile phones open an adb port to an external network, and users connect through the adb. However, in the method, the user needs to install an adb command line tool to connect the cloud mobile phone, and the method is not universal.
Disclosure of Invention
An object of the embodiment of the application is to provide a Shell access method and device for a cloud mobile phone, an electronic device and a readable storage medium, which are used for realizing quick access to a cloud mobile phone Shell.
The embodiment of the application provides a Shell access method of a cloud mobile phone, which is applied to a web (webpage) console and comprises the following steps:
after a cloud mobile phone connection instruction aiming at a target cloud mobile phone is received, sending a unique identifier and a Shell connection instruction of the target cloud mobile phone to a control server;
receiving address information of the target cloud mobile phone, which is sent by the control server based on the unique identifier and the Shell connection instruction;
sending a connection request to the target cloud mobile phone according to the address information;
and after receiving the connection success information returned by the target cloud mobile phone, displaying a Shell simulation picture.
In the implementation process, after receiving a cloud mobile phone connection instruction for a target cloud mobile phone, the web console sends the unique identifier of the target cloud mobile phone and the Shell connection instruction to the control server. And then, receiving address information of the target cloud mobile phone sent by the control server based on the unique identifier and the Shell connection instruction, and further sending a connection request to the target cloud mobile phone according to the address information, so that after receiving connection success information returned by the target cloud mobile phone, a Shell simulation picture is displayed. Therefore, the connection between the web console and the target cloud mobile phone is successfully established, data transmission can be carried out between the web console and the target cloud mobile phone after the connection without a control server, the Shell control instruction can be directly sent to the target cloud mobile phone, the real-time performance is higher, the time delay is smaller, and the quick access to the cloud mobile phone Shell is realized. In addition, according to the scheme, quick access to the cloud mobile phone Shell can be achieved by logging in the web console, a special client does not need to be installed, and the method and the system have universality.
Further, after receiving a cloud mobile phone connection instruction for a target cloud mobile phone, the method further includes: generating a key of the target cloud mobile phone; correspondingly, the sending of the Shell connection instruction to the control server includes: sending a Shell connection instruction containing the secret key to the control server, so that the control server can forward the secret key to the target cloud mobile phone; correspondingly, sending a connection request to the target cloud mobile phone according to the address information includes: and sending a connection request carrying the key to the target cloud mobile phone according to the address information so that the target cloud mobile phone can determine whether the connection request is legal or not according to the key and return the connection success information when the connection request is legal.
In the implementation process, the key is set, so that the target cloud mobile phone can determine whether the received connection request transmitted by the web console is legal or not according to the key, and the connection success information is returned only when the connection request is legal. Therefore, the validity of the request source is verified through the secret key, and the risk of data leakage caused by the fact that other illegal equipment is connected to the cloud mobile phone is reduced.
Further, after displaying the Shell simulation picture, the method further comprises: after monitoring a control instruction input in the Shell simulation picture, sending the control instruction to the target cloud mobile phone; receiving an execution result returned by the target cloud mobile phone; rendering the execution result to the Shell simulation picture for display.
In the implementation process, the web console monitors the Shell simulation picture, so that a user can send the control instruction to the target cloud mobile phone only by inputting the control instruction in the Shell simulation picture, and the control on the target cloud mobile phone is realized. The control instruction can be sent to the target cloud mobile phone from the web console without passing through the control server, so that the real-time performance is higher, and the time delay is smaller.
Further, before receiving a cloud handset connection instruction for a target cloud handset, the method further comprises: after the user successfully logs in, establishing connection with the control server; acquiring all available cloud mobile phones corresponding to the user from the control server; the available cloud mobile phone is a cloud mobile phone which is currently connected with the control server; displaying all available cloud mobile phones corresponding to the user; the target cloud mobile phone is a cloud mobile phone selected from the displayed available cloud mobile phones.
In the implementation process, a user logs in firstly, after the login is successful, the fact that the user wants to perform Shell access on a target cloud mobile phone is indicated, the web console establishes connection with the control server, all available cloud mobile phones corresponding to the user are obtained from the control server and displayed, and therefore the user can select the target cloud mobile phone needing the Shell access from the displayed available cloud mobile phones.
The embodiment of the application also provides a Shell access method of the cloud mobile phone, which is applied to the control server and comprises the following steps:
when a unique identifier and a Shell connection instruction sent by a web console are received, finding out a target cloud mobile phone according to the unique identifier, and sending the Shell connection instruction to the target cloud mobile phone;
acquiring a remote Shell service port of a remote Shell service started by the target cloud mobile phone according to the Shell connection instruction;
and mapping the remote Shell service port to an external network to obtain address information of the target cloud mobile phone in the external network, and sending the address information to the web console so that the web console can establish connection with the target cloud mobile phone according to the address information.
In the implementation process, when the control server receives the unique identifier and the Shell connection instruction sent by the web console, the control server finds out the target cloud mobile phone according to the unique identifier and sends the Shell connection instruction to the target cloud mobile phone. And then, acquiring a remote Shell service port of the remote Shell service started by the target cloud mobile phone according to the Shell connection instruction, mapping the remote Shell service port into an external network, acquiring address information of the target cloud mobile phone in the external network, and sending the address information to a web console so that the web console establishes connection with the target cloud mobile phone according to the address information. Therefore, data transmission can be carried out between the connected web console and the target cloud mobile phone without a control server, the Shell control instruction can be directly sent to the target cloud mobile phone, the real-time performance is higher, the time delay is smaller, and the quick access to the cloud mobile phone Shell is realized. In addition, according to the scheme, quick access to the cloud mobile phone Shell can be achieved by logging in the web console, a special client does not need to be installed, and the method and the system have universality.
Further, the address information of the target cloud mobile phone in the external network includes: the external network IP address of the target cloud mobile phone and the external network port of the target cloud mobile phone.
In the implementation process, when the remote Shell service port is mapped into an external network, the external network IP address and the external network port of the target cloud mobile phone can be obtained, so that the web console can be conveniently connected.
Further, the method further comprises: receiving a cloud mobile phone connection request transmitted by a cloud mobile phone; the cloud mobile phone connection request carries the unique identification of the cloud mobile phone; establishing connection with the cloud mobile phone, and recording the unique identification of the cloud mobile phone and the established connection in an associated manner; and when a user cloud mobile phone acquisition request sent by the web console is received, sending the cloud mobile phone corresponding to the user to the web console according to a preset corresponding relationship between the user and the cloud mobile phone.
In the implementation process, the cloud mobile phone is connected with the control server, and the control server records the unique identifier of the cloud mobile phone with the connection and the established connection, so that when the web console requests to acquire the cloud mobile phone corresponding to the current user, the cloud mobile phone corresponding to the user can be sent to the web console according to the preset corresponding relation between the user and the cloud mobile phone, and the reliability of the scheme of the embodiment of the application is improved.
Further, according to a preset corresponding relationship between the user and the cloud mobile phone, sending the cloud mobile phone corresponding to the user to the web console includes:
searching all cloud mobile phones corresponding to the user according to a preset corresponding relation between the user and the cloud mobile phones, and sending the unique identification of each cloud mobile phone and the state information of whether each cloud mobile phone establishes connection with the control server currently to the web console;
or the like, or, alternatively,
searching all cloud mobile phones corresponding to the user according to a preset corresponding relation between the user and the cloud mobile phones, and searching the cloud mobile phones which are currently connected with the control server from all the cloud mobile phones corresponding to the user according to the unique identification and the established connection of the cloud mobile phones recorded in the association manner; and sending the cloud mobile phone which is connected with the control server to the web console.
In the implementation process, the unique identifiers of all cloud mobile phones corresponding to the user and the state information of whether each cloud mobile phone establishes connection with the control server currently can be all returned to the web console, and the web console can display the state information of whether each cloud mobile phone establishes connection with the control server currently through the browser, so that the user can know which cloud mobile phones are available and which are unavailable currently (the cloud mobile phone establishing connection with the control server is an available cloud mobile phone, and the cloud mobile phone not establishing connection is an unavailable cloud mobile phone). In addition, the currently corresponding available cloud mobile phone of the user can be found out according to the unique identification of the cloud mobile phone recorded in the association record and the established connection, and the unique identification of the currently corresponding available cloud mobile phone is returned to the web console, so that the cloud mobile phones selected by the user can be all available cloud mobile phones. Through the two modes, the return of the current available cloud mobile phone of the user can be realized, so that the user can effectively select the target cloud mobile phone which needs to be accessed by the Shell, and the reliability of the scheme of the embodiment of the application is improved.
The embodiment of the application also provides a Shell access method of the cloud mobile phone, which is applied to the cloud mobile phone and comprises the following steps:
starting the remote Shell service when receiving a Shell connection instruction transmitted by a control server;
distributing a remote Shell service port for the remote Shell service;
sending the remote Shell service port to the control server;
and after receiving a connection request sent by the web console, establishing connection with the web console.
In the implementation process, when the cloud mobile phone receives a Shell connection instruction transmitted by the control server, the remote Shell service is started, the remote Shell service port is allocated, and the allocated remote Shell service port is transmitted to the control server, so that the control server obtains corresponding address information according to the Shell service port and transmits the address information to the web console. After receiving a connection request sent by the web console, the cloud mobile phone can establish connection with the web console. Therefore, data transmission can be carried out between the connected web console and the target cloud mobile phone without a control server, the Shell control instruction can be directly sent to the target cloud mobile phone, the real-time performance is higher, the time delay is smaller, and the quick access to the cloud mobile phone Shell is realized. In addition, according to the scheme, the cloud mobile phone Shell can be quickly accessed by logging in the browser of the web console, a special client does not need to be installed, and the method and the system have universality.
Further, the Shell connection instruction includes a first key; the connection request sent by the web console comprises a second key; prior to establishing a connection with the web console, the method further comprises: determining that the first key and the second key match.
In the implementation process, the validity of the request source is verified through the secret key, and the risk of data leakage caused by the fact that other illegal devices are connected to the cloud mobile phone is reduced.
Further, after establishing the connection with the web console, the method further comprises: receiving a control instruction transmitted by the web console; and calling the remote Shell service to execute the control instruction, and returning an execution result to the web console.
In the implementation process, the control instruction can be executed without being received by the control server, so that the real-time performance is higher, and the time delay is smaller.
Further, the method further comprises: and when the cloud mobile phone is started, sending a connection request carrying a unique identifier to the control server.
In the implementation process, when the cloud mobile phone is started, the connection request carrying the unique identifier is sent to the control server, so that the capability of connecting with the web console can be achieved after the cloud mobile phone is started, and the resource waste after the cloud mobile phone is started is reduced.
The embodiment of the application further provides a Shell access device of the cloud mobile phone, which is applied to a web console and comprises the following components: the device comprises a first sending module, a first receiving module and a display module;
the first receiving module is used for receiving a cloud mobile phone connection instruction aiming at a target cloud mobile phone;
the first sending module is used for sending the unique identifier of the target cloud mobile phone and the Shell connection instruction to the control server after the first receiving module receives the cloud mobile phone connection instruction aiming at the target cloud mobile phone;
the first receiving module is further configured to receive address information of the target cloud mobile phone, which is sent by the control server based on the unique identifier and the Shell connection instruction;
the first sending module is further configured to send a connection request to the target cloud mobile phone according to the address information;
the first receiving module is further configured to receive connection success information returned by the target cloud mobile phone;
the display module is used for displaying the Shell simulation picture after the first receiving module receives the connection success information returned by the target cloud mobile phone.
The embodiment of the application further provides a Shell access device of the cloud mobile phone, which is applied to the control server and comprises: the device comprises a second sending module, a second receiving module, a searching module, an obtaining module and a mapping module;
the second receiving module is used for receiving the unique identifier and the Shell connection instruction sent by the web console;
the searching module is used for searching a target cloud mobile phone according to the unique identifier when the second receiving module receives the unique identifier and the Shell connection instruction sent by the web console;
the second sending module is used for sending the Shell connection instruction to the target cloud mobile phone;
the obtaining module is used for obtaining a remote Shell service port of a remote Shell service started by the target cloud mobile phone according to the Shell connection instruction;
the mapping module is used for mapping the remote Shell service port to an external network to obtain the address information of the target cloud mobile phone in the external network;
the second sending module is further configured to send the address information to the web console, so that the web console establishes a connection with the target cloud mobile phone according to the address information.
The embodiment of the application further provides a Shell access device of the cloud mobile phone, which is applied to the cloud mobile phone and comprises: the third sending module, the third receiving module, the configuration module and the connection module;
the third receiving module is used for receiving the Shell connection instruction transmitted by the control server;
the configuration module is used for starting the remote Shell service and distributing a remote Shell service port for the remote Shell service when the third receiving module receives a Shell connection instruction transmitted by the control server;
the third sending module is configured to send the remote Shell service port to the control server;
the third receiving module is further configured to receive a connection request sent by a web console;
the connection module is configured to establish a connection with the web console after the third receiving module receives the connection request sent by the web console.
An embodiment of the present application further provides an electronic device, including: the system comprises a data communication interface, a processor, a memory and a communication bus; the data communication interface is used for receiving and sending data; the communication bus is used for realizing connection communication among the data communication interface, the processor and the memory; the processor is configured to execute one or more programs stored in the memory to implement any of the above Shell access methods for the cloud handset.
The embodiment of the application also provides a readable storage medium, wherein one or more programs are stored in the readable storage medium, and the one or more programs can be executed by one or more processors to realize any one of the above Shell access methods of the cloud mobile phone.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a Shell access method of a cloud mobile phone according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a specific Shell access process of a cloud mobile phone according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a Shell access device applied to a web console according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a Shell access device applied in a control server according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a Shell access device applied to a cloud mobile phone according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a more specific Shell access device applied in a web console according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The first embodiment is as follows:
in order to realize quick access to a cloud mobile phone, in the embodiment of the application, a Shell access method of the cloud mobile phone is provided. As shown in fig. 1, the Shell access method of the cloud handset includes:
s101: after receiving a cloud mobile phone connection instruction aiming at a target cloud mobile phone, the web console sends the unique identifier of the target cloud mobile phone and the Shell connection instruction to the control server.
It should be noted that the web console is a UI (User Interface) Interface running on a browser, and a User can implement operations on the web console, such as login and instruction input, on a User terminal.
In the embodiment of the application, a user can log in the web console first, so that a cloud mobile phone connection instruction aiming at a target cloud mobile phone is issued to the web console.
It should be further noted that, in this embodiment of the application, the web console may establish a connection with the control server after the user logs in successfully, and further acquire and display all available cloud mobile phones under the user name from the control server.
It should be understood that after the user logs in successfully, the web console may acquire the unique identifier (such as a user account) of the user, and the control server may record the unique identifiers of the cloud mobile phones and the users having the use permissions corresponding to the cloud mobile phones, so that the web console may acquire all available cloud mobile phones corresponding to the unique identifier (i.e., under the name of the user) from the control server according to the acquired unique identifier of the user. It should be noted that, in this embodiment of the present application, an available cloud mobile phone refers to a cloud mobile phone that is currently started and has a connection with a control server.
In the embodiment of the application, a feasible method for acquiring all available cloud mobile phones under a user name is that a web console sends a user cloud mobile phone acquisition request carrying a unique identifier of a user to a control server, then the control server searches all cloud mobile phones corresponding to the user according to the user cloud mobile phone acquisition request and a preset corresponding relationship between the user and the cloud mobile phones (namely, the corresponding relationship between the unique identifier of the user and the cloud mobile phones), and further sends the searched unique identifiers of the cloud mobile phones (such as unique IDs of the cloud mobile phones) and state information of whether the cloud mobile phones are currently connected with the control server (namely, whether the cloud mobile phones are available) to the web console. In this way, the web console displays the unique identifier and the state information of each cloud mobile phone, and the user can determine which cloud mobile phones are available cloud mobile phones according to the displayed state information of each cloud mobile phone, and then select one cloud mobile phone from the available cloud mobile phones as a target cloud mobile phone.
In this embodiment of the application, another possible manner for acquiring all available cloud mobile phones in a user name is that a web console sends a user cloud mobile phone acquisition request carrying a unique identifier of a user to a control server, then the control server searches for all cloud mobile phones corresponding to the user according to a preset correspondence between the user and cloud mobile phones (i.e., a correspondence between the unique identifier of the user and cloud mobile phones) according to the user cloud mobile phone acquisition request, and then the control server determines cloud mobile phones (i.e., available cloud mobile phones) having connections established among all cloud mobile phones according to whether each cloud mobile phone has a connection with itself, and sends the determined unique identifiers of the available cloud mobile phones to the web console. In this way, the web console may only display the unique identifiers of the available cloud handsets, and the user selects one cloud handset from the available cloud handsets as the target cloud handset.
S102: and when the control server receives the unique identifier and the Shell connection instruction sent by the web console, finding out the target cloud mobile phone according to the unique identifier.
In the embodiment of the application, the unique identification of each cloud mobile phone is stored in the control server, and then the corresponding target cloud mobile phone can be determined according to the unique identification.
It is to be noted that, in the embodiment of the present application, in order to facilitate cloud mobile phone management, it may be set that, when a cloud mobile phone is started, a connection request carrying a unique identifier of the cloud mobile phone is sent to a control server. After receiving a connection request of the cloud mobile phone, the control server establishes connection with the cloud mobile phone, and performs association recording on the unique identifier of the cloud mobile phone and the established connection, so that when receiving the unique identifier of the target cloud mobile phone and the Shell connection instruction sent by the web console, the control server can find the target cloud mobile phone according to the unique identifier of the target cloud mobile phone and forward the Shell connection instruction by using the connection established between the control server and the target cloud mobile phone.
It should be understood that the control server may also determine which cloud mobile phones are currently connected to the control server according to the unique identifier of the cloud mobile phone recorded in association and the established connection, so that when a cloud mobile phone is returned to the web console, state information of connection establishment between each cloud mobile phone and the control server is returned, or according to the unique identifier of the cloud mobile phone recorded in association and the established connection, an available cloud mobile phone is searched out from all cloud mobile phones corresponding to the user and returned to the web console.
S103: and sending the Shell connection instruction to the target cloud mobile phone.
S104: and when the target cloud mobile phone receives the Shell connection instruction transmitted by the control server, starting the remote Shell service.
In the embodiment of the application, the cloud mobile phone is provided with the remote Shell service so as to provide the remote Shell service. The remote Shell service is written into the cloud mobile phone in the form of program instructions.
S105: and allocating a remote Shell service port for the remote Shell service.
In the embodiment of the application, the remote Shell service port allocated by each cloud mobile phone for the remote Shell service can be fixed, namely, the remote Shell service port is preset in the cloud mobile phone, and after the remote Shell service is started, the port is allocated to the remote Shell service, so that the remote Shell service performs data interaction outwards through the port. In addition, in the embodiment of the application, the cloud mobile phone can also be a dynamically allocated remote Shell service port, that is, when the remote Shell service is started, which of the currently idle ports is detected, and then one port is allocated from the idle port as the remote Shell service port, so that the remote Shell service performs data interaction to the outside through the port.
S106: and sending the remote Shell service port to a control server.
S107: and the control server maps the remote Shell service port to an external network to obtain the address information of the target cloud mobile phone in the external network.
In the embodiment of the application, the control server can call the cloud mobile phone virtualization service to map the remote Shell service port into the external network. Specifically, the control server can control the cloud mobile phone virtualization service to call the relevant gateway, and map the remote Shell service port to obtain the external network IP address of the target cloud mobile phone and the external network port of the target cloud mobile phone. It should be understood that the gateway records the corresponding relationship between the remote Shell service port and the external network IP address and the external network port of the target cloud mobile phone, so that the web console can realize data interaction with the target cloud mobile phone through the address information of the target cloud mobile phone in the external network through the gateway.
S108: the address information is sent to the web console.
S109: and the web console sends a connection request to the target cloud mobile phone according to the address information.
In the embodiment of the application, when the web console sends the connection request to the target cloud mobile phone according to the address information, the connection request first reaches the gateway, and the gateway sends the connection request to the target cloud mobile phone according to the recorded corresponding relation between the remote Shell service port and the external network IP address and the external network port of the target cloud mobile phone. Therefore, the isolation of the internal network and the external network is realized based on the gateway, and the safety is improved to a certain extent.
S110: and after receiving a connection request sent by the web console, the target cloud mobile phone establishes connection with the web console.
S111: and returning connection success information to the web console.
In the embodiment of the application, after the target cloud mobile phone establishes connection with the web console, connection success information can be returned to the web console.
It should be noted that, in the embodiment of the present application, the connection established between the cloud mobile phone and the control server, the connection established between the control server and the web console, and the connection established between the cloud mobile phone and the web console may all be Websocket connections, so as to implement full duplex communication at two ends of the connection.
S112: and after receiving the connection success information returned by the target cloud mobile phone, the web console displays a Shell simulation picture.
It should be noted that, in the embodiment of the present application, the Shell simulation screen is a screen generated by the web console. After the Shell simulation picture is displayed, the web console monitors the instruction input by the user in the Shell simulation picture display area. In the embodiment of the application, a user can realize the Shell access to the cloud mobile phone by inputting an instruction in the Shell simulation picture display area. Specifically, after monitoring a control instruction input in the Shell simulation picture, the web console can send the control instruction to the target cloud mobile phone through the established connection. And the target cloud mobile phone can call the remote Shell service to execute the control instruction and return an execution result to the web console. And rendering the execution result to a Shell simulation picture by the web console for presentation, so that a user can see the execution result of the cloud mobile phone, and subsequent control is facilitated.
It should be noted that, in order to improve security in the whole access process, in this embodiment of the application, after receiving a cloud mobile phone connection instruction for a target cloud mobile phone, the web console may further generate a first key for the target cloud mobile phone, and the first key is carried in a Shell connection instruction sent to the control server. Correspondingly, when the control server receives the unique identifier and the Shell connection instruction sent by the web console, the Shell connection instruction forwarded to the target cloud mobile phone should carry the first key. Correspondingly, when the web console sends a connection request to the target cloud mobile phone according to the address information of the target cloud mobile phone sent by the control server, the connection request carries a second secret key corresponding to the first secret key, so that when the target cloud mobile phone receives the connection request sent by the web console, the target cloud mobile phone is matched with the previously received first secret key according to the second secret key in the connection request, and then when the second secret key is matched with the first secret key, the connection with the web console is established, otherwise, the connection is refused to be established.
It should be understood that, in this embodiment of the application, the second key may use a key that is the same as the first key, at this time, before the web console sends the connection request to the target cloud mobile phone, that is, the key does not need to be regenerated, the previously generated first key is directly added to the connection request, at this time, the cloud mobile phone may establish the connection with the web console as long as it determines that the key in the connection request sent by the web console is consistent with the key in the Shell connection instruction sent by the control server before, otherwise, the connection is denied.
It should also be understood that, in the embodiment of the present application, the second key may also use a key that is not the same as the first key, but generate a correspondingly matched second key according to the previously generated first key before sending the connection request to the target cloud handset according to a pre-negotiated matching rule.
According to the Shell access method of the cloud mobile phone, data transmission can be carried out between the connected web console and the target cloud mobile phone without the control server, Shell control instructions can be directly sent to the target cloud mobile phone, real-time performance is higher, time delay is smaller, and quick access to the cloud mobile phone Shell is achieved. In addition, according to the scheme, the cloud mobile phone Shell can be quickly accessed through the browser, a special client does not need to be installed, and the method and the device have universality.
Example two:
based on the description of the first embodiment, the present embodiment further illustrates the scheme of the embodiment of the present application by taking a specific Shell access process as an example.
Referring to fig. 2, fig. 2 is a schematic diagram of a process from user login to Shell access control, including:
s201: the web console receives a login request.
The login request should carry data required for login, such as a unique user identifier. Usually, login authentication is required when login is performed, and therefore, login authentication information such as a password may be included in the login request.
S202: after the web console passes the login checking request, establishing WebSocket connection with the control server, and requesting a cloud mobile phone list corresponding to the user.
S203: and returning a cloud mobile phone list corresponding to the current user according to a request transmitted by the web console.
It should be noted that in the embodiment of the present application, a mobile phone control program is preset in each cloud mobile phone. After the cloud mobile phone is started, a mobile phone control program is started, and the mobile phone control program is connected to the control server through WebSocket. When the control server is connected through the WebSocket, the unique ID of the cloud mobile phone is carried. The control server can record the connection relation between the unique ID and the WebSocket in an associated mode, and therefore confirmation of the states of the cloud mobile phones is facilitated.
In addition, in the embodiment of the application, the control server records the users corresponding to the cloud mobile phones in advance, so that after the request of the web console is received, all the cloud mobile phones corresponding to the current user can be found out, and the unique ID and the corresponding available state of each cloud mobile phone are returned to the web console in a list form.
S204: the web console displays a cloud cell phone list.
During displaying, all cloud mobile phones of the user can be displayed, the unique ID of each cloud mobile phone is included, and whether each cloud mobile phone is connected to the control server through the websocket or not can be displayed.
S205: the web console receives a cloud mobile phone connection instruction for the target cloud mobile phone.
The user can select one cloud mobile phone which is connected to the control server through the websocket currently from the web console interface of the browser as a target cloud mobile phone, and the web console obtains a cloud mobile phone connection instruction for the target cloud mobile phone according to the selection operation of the user. The cloud mobile phone connection instruction comprises the unique ID of the target cloud mobile phone.
S206: the web console generates a key.
S207: and sending the unique ID of the target cloud mobile phone and a Shell connection instruction carrying the generated key to a control server.
S208: and the control server finds out the websocket connection established with the target cloud mobile phone according to the unique ID.
S209: and sending a Shell connection instruction carrying the key to the target cloud mobile phone through the websocket connection.
S210: and starting the remote Shell service by the target cloud mobile phone.
S211: and allocating a remote Shell service port for the remote Shell service.
S212: and sending the remote Shell service port to a control server.
S213: and the control server calls the gateway to map the remote Shell service port to an external network to obtain an external network IP address and an external network port of the target cloud mobile phone.
S214: and sending the external network IP address and the external network port of the target cloud mobile phone to the web console.
S215: and the web console sends a connection request to the remote Shell service in the target cloud mobile phone through the external network IP address and the external network port, wherein the connection request comprises the key generated in the step S206.
S216: the remote Shell service detects whether the key in the connection request is consistent with the key in the previously received Shell connection instruction. If yes, go to step S217; otherwise, ending.
S217: establishing websocket connection with the web console, and returning connection success information to the web console.
S218: the web console displays the Shell simulation screen.
S219: and monitoring a Shell simulation picture.
S220: and after monitoring a control instruction input in the Shell simulation picture, sending the control instruction to the remote Shell service of the target cloud mobile phone through the established websocket connection.
S221: and the remote Shell service of the target cloud mobile phone executes the control instruction.
S222: and returning the execution result to the web console through the established websocket connection.
S223: the web console adds the execution result to the Shell simulation screen for display, and proceeds to step S219.
Through the process, the scheme of the embodiment of the application realizes that the web end is directly connected with the cloud mobile phone operation shell. The whole scheme can be implemented as long as the user equipment is provided with the browser, a special client does not need to be installed, and the method has universality and is convenient to use. In addition, the control instruction can be sent to the target cloud mobile phone without being transferred by the controller, so that the real-time performance is higher, and the time delay is smaller. In addition, the cloud mobile phone can be connected through an external network IP without using a public network IP, so that the cloud mobile phone is more convenient.
Example three:
based on the same inventive concept, the embodiment of the application also provides three Shell access devices of the cloud mobile phone. Referring to fig. 3 to 5, fig. 3 shows a Shell access device 100 corresponding to steps executed by a web console in the method shown in fig. 1, fig. 4 shows a Shell access device 200 corresponding to steps executed by a control server in the method shown in fig. 1, and fig. 5 shows a Shell access device 300 corresponding to steps executed by a cloud handset in the method shown in fig. 1. It should be understood that the specific functions of the Shell access devices 100, 200 and 300 can be referred to the above description, and the detailed description is appropriately omitted herein to avoid redundancy. The Shell access devices 100, 200 and 300 include at least one software functional module that can be stored in a memory in the form of software or firmware or solidified in an operating system of the Shell access devices 100, 200 and 300. Specifically, the method comprises the following steps:
referring to fig. 3, the Shell access apparatus 100 is applied to a web console, and includes: a first sending module 101, a first receiving module 102 and a display module 103. Wherein:
the first receiving module 102 is configured to receive a cloud phone connection instruction for a target cloud phone;
the first sending module 101 is configured to send the unique identifier of the target cloud mobile phone and the Shell connection instruction to the control server after the first receiving module 102 receives the cloud mobile phone connection instruction for the target cloud mobile phone;
the first receiving module 102 is further configured to receive address information of the target cloud mobile phone, which is sent by the control server based on the unique identifier and the Shell connection instruction;
the first sending module 101 is further configured to send a connection request to the target cloud mobile phone according to the address information;
the first receiving module 102 is further configured to receive connection success information returned by the target cloud mobile phone;
the display module 103 is configured to display a Shell simulation picture after the first receiving module 102 receives the connection success information returned by the target cloud mobile phone.
In a possible implementation manner of the embodiment of the present application, referring to fig. 6, the Shell access apparatus 100 further includes a key generation module 104. The key generation module 104 is configured to generate a key of the target cloud mobile phone after the first receiving module 102 receives the cloud mobile phone connection instruction for the target cloud mobile phone. At this time, the Shell connection instruction sent by the first sending module 101 includes the key, and the connection request sent by the first sending module 101 to the target cloud handset also includes the key.
In a possible implementation manner of the embodiment of the present application, the display module 103 is configured to monitor a control instruction input in a Shell simulation picture. The first sending module 101 is further configured to send the control instruction to the target cloud mobile phone after the display module 103 monitors the control instruction input in the Shell simulation picture. The first receiving module 102 is further configured to receive an execution result returned by the target cloud handset. The display module 103 is also used for rendering the execution result into a Shell simulation picture.
In a possible implementation manner of the embodiment of the present application, still referring to fig. 6, the Shell access apparatus 100 further includes a connection establishing module 105. The connection establishing module 105 is used for establishing connection with the control server after the user successfully logs in, and acquiring all available cloud mobile phones corresponding to the user from the control server; the available cloud mobile phone is the cloud mobile phone which is currently connected with the control server. The display module 103 is further configured to display all available cloud mobile phones corresponding to the user; the target cloud cell phone is a cloud cell phone selected from the displayed available cloud cell phones.
Referring to fig. 4, the Shell access device 200 is applied to a control server, and includes: a second sending module 201, a second receiving module 203, a searching module 202, an obtaining module 204 and a mapping module 205. Wherein:
the second receiving module 203 is used for receiving the unique identifier and the Shell connection instruction sent by the web console;
the searching module 202 is configured to search out the target cloud mobile phone according to the unique identifier when the second receiving module 203 receives the unique identifier and the Shell connection instruction sent by the web console;
the second sending module 201 is configured to send the Shell connection instruction to the target cloud mobile phone;
an obtaining module 204, configured to obtain a remote Shell service port of a remote Shell service, which is started by a target cloud mobile phone according to a Shell connection instruction;
the mapping module 205 is configured to map the remote Shell service port to an external network to obtain address information of the target cloud mobile phone in the external network;
the second sending module 201 is further configured to send the address information to the web console, so that the web console establishes a connection with the target cloud mobile phone according to the address information.
In a feasible implementation manner of the embodiment of the present application, the address information of the target cloud mobile phone in the external network includes: the external network IP address of the target cloud mobile phone and the external network port of the target cloud mobile phone.
In a feasible implementation manner of the embodiment of the application, the second receiving module 203 is further configured to receive a cloud mobile phone connection request carrying the unique identifier of the cloud mobile phone, which is sent by the cloud mobile phone, establish a connection with the cloud mobile phone, and record the unique identifier of the cloud mobile phone and the established connection in an associated manner. The second sending module 201 is further configured to send, when the second receiving module 203 receives the user cloud mobile phone obtaining request sent by the web console, the cloud mobile phone corresponding to the user to the web console according to a preset corresponding relationship between the user and the cloud mobile phone.
In a feasible implementation manner of the embodiment of the present application, the search module 202 is further configured to search for all cloud mobile phones corresponding to the user according to a preset corresponding relationship between the user and the cloud mobile phones. The second sending module 201 is further configured to send the unique identifier of each cloud mobile phone and the status information of whether each cloud mobile phone currently establishes a connection with the control server to the web console.
Or, the searching module 202 is further configured to search all cloud mobile phones corresponding to the user according to a preset corresponding relationship between the user and the cloud mobile phones, and search the cloud mobile phones currently connected with the control server from all cloud mobile phones corresponding to the user according to the unique identifier of the cloud mobile phone recorded in association and the established connection. The second sending module 201 is further configured to send the cloud handset that has currently established a connection with the control server to the web console.
Referring to fig. 5, the Shell access apparatus 300 is applied to a cloud handset, and includes: a third sending module 301, a third receiving module 303, a configuration module 302 and a connection module 304. Wherein:
a third receiving module 303, configured to receive a Shell connection instruction sent by the control server;
the configuration module 302 is configured to start a remote Shell service and allocate a remote Shell service port to the remote Shell service when the third receiving module 303 receives a Shell connection instruction transmitted by the control server;
a third sending module 301, configured to send the remote Shell service port to the control server;
a third receiving module 303, configured to receive a connection request sent by a web console;
the connection module 304 is configured to establish a connection with the web console after the third receiving module 303 receives the connection request sent by the web console.
In a feasible implementation manner of the embodiment of the application, the Shell connection instruction includes a first key; the connection request sent by the web console contains the second key. The connection module 304 is also configured to determine that the first key and the second key match prior to establishing a connection with the web console.
In a possible implementation manner of the embodiment of the present application, after establishing a connection with the web console, the third receiving module 303 is further configured to receive a control instruction transmitted from the web console; the configuration module 302 is further configured to invoke a remote Shell service to execute the control instruction, and the third sending module 301 is further configured to return an execution result to the web console.
In a feasible implementation manner of the embodiment of the present application, the third sending module 301 is further configured to send, to the control server, a connection request carrying the unique identifier when the cloud mobile phone is started.
It should be understood that, for the sake of brevity, the contents described in some embodiments are not repeated in this embodiment.
Example four:
the present embodiment provides an electronic device, which is shown in fig. 7 and includes a data communication interface 701, a processor 702, a memory 703 and a communication bus 704. Wherein:
data communication interface 701 is used for receiving and sending data.
The communication bus 704 is used for connection communication among the data communication interface 701, the processor 702, and the memory 703.
The processor 702 is configured to execute one or more programs stored in the memory 703 to implement the steps in the Shell access method of the cloud handset performed by any one of the web console, the control server, and the cloud handset in the first embodiment or the second embodiment.
It will be appreciated that the configuration shown in fig. 7 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 7 or have a different configuration than shown in fig. 7.
The present embodiment further provides a readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash Memory, a usb (secure digital Card), an MMC (Multimedia Card), etc., where one or more programs for implementing the above steps are stored in the readable storage medium, and the one or more programs may be executed by one or more processors to implement the steps in the Shell access method of the cloud phone executed by any one of the web console, the control server, and the cloud phone in the first or second embodiment. And will not be described in detail herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
In this context, a plurality means two or more.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (17)

1. A Shell access method of a cloud mobile phone is applied to a web console and comprises the following steps:
after a cloud mobile phone connection instruction aiming at a target cloud mobile phone is received, sending a unique identifier and a Shell connection instruction of the target cloud mobile phone to a control server;
receiving address information of the target cloud mobile phone, which is sent by the control server based on the unique identifier and the Shell connection instruction;
sending a connection request to the target cloud mobile phone according to the address information;
and after receiving the connection success information returned by the target cloud mobile phone, displaying a Shell simulation picture.
2. The Shell access method of a cloud handset as claimed in claim 1, wherein after receiving a cloud handset connection instruction for a target cloud handset, the method further comprises: generating a key of the target cloud mobile phone;
correspondingly, the sending of the Shell connection instruction to the control server includes: sending a Shell connection instruction containing the secret key to the control server, so that the control server can forward the secret key to the target cloud mobile phone;
correspondingly, sending a connection request to the target cloud mobile phone according to the address information includes: and sending a connection request carrying the key to the target cloud mobile phone according to the address information so that the target cloud mobile phone can determine whether the connection request is legal or not according to the key and return the connection success information when the connection request is legal.
3. The Shell access method of the cloud handset as recited in claim 1, wherein after displaying the Shell simulation picture, the method further comprises:
after monitoring a control instruction input in the Shell simulation picture, sending the control instruction to the target cloud mobile phone;
receiving an execution result returned by the target cloud mobile phone;
rendering the execution result to the Shell simulation picture for display.
4. The Shell access method for a cloud handset of claim 1, wherein prior to receiving a cloud handset connection instruction for a target cloud handset, the method further comprises:
after the user successfully logs in, establishing connection with the control server;
acquiring all available cloud mobile phones corresponding to the user from the control server; the available cloud mobile phone is a cloud mobile phone which is currently connected with the control server;
displaying all available cloud mobile phones corresponding to the user; the target cloud mobile phone is a cloud mobile phone selected from the displayed available cloud mobile phones.
5. A Shell access method of a cloud mobile phone is applied to a control server and comprises the following steps:
when a unique identifier and a Shell connection instruction sent by a web console are received, finding out a target cloud mobile phone according to the unique identifier, and sending the Shell connection instruction to the target cloud mobile phone;
acquiring a remote Shell service port of a remote Shell service started by the target cloud mobile phone according to the Shell connection instruction;
and mapping the remote Shell service port to an external network to obtain address information of the target cloud mobile phone in the external network, and sending the address information to the web console so that the web console can establish connection with the target cloud mobile phone according to the address information.
6. The Shell access method of the cloud handset according to claim 5, wherein the address information of the target cloud handset in the external network includes: the external network IP address of the target cloud mobile phone and the external network port of the target cloud mobile phone.
7. The Shell access method of the cloud handset as recited in claim 5 or 6, wherein the method further comprises:
receiving a cloud mobile phone connection request transmitted by a cloud mobile phone; the cloud mobile phone connection request carries the unique identification of the cloud mobile phone;
establishing connection with the cloud mobile phone, and recording the unique identification of the cloud mobile phone and the established connection in an associated manner;
and when a user cloud mobile phone acquisition request sent by the web console is received, sending the cloud mobile phone corresponding to the user to the web console according to a preset corresponding relationship between the user and the cloud mobile phone.
8. The Shell access method of the cloud mobile phone according to claim 7, wherein the step of sending the cloud mobile phone corresponding to the user to the web console according to a preset correspondence between the user and the cloud mobile phone comprises:
searching all cloud mobile phones corresponding to the user according to a preset corresponding relation between the user and the cloud mobile phones, and sending the unique identification of each cloud mobile phone and the state information of whether each cloud mobile phone establishes connection with the control server currently to the web console;
or the like, or, alternatively,
searching all cloud mobile phones corresponding to the user according to a preset corresponding relation between the user and the cloud mobile phones, and searching the cloud mobile phones which are currently connected with the control server from all the cloud mobile phones corresponding to the user according to the unique identification and the established connection of the cloud mobile phones recorded in the association manner; and sending the cloud mobile phone which is connected with the control server to the web console.
9. A Shell access method of a cloud mobile phone is characterized by being applied to the cloud mobile phone and comprising the following steps:
starting the remote Shell service when receiving a Shell connection instruction transmitted by a control server;
distributing a remote Shell service port for the remote Shell service;
sending the remote Shell service port to the control server;
and after receiving a connection request sent by the web console, establishing connection with the web console.
10. The Shell access method of the cloud handset according to claim 9, wherein the Shell connection command includes a first key; the connection request sent by the web console comprises a second key;
prior to establishing a connection with the web console, the method further comprises:
determining that the first key and the second key match.
11. The Shell access method of a cloud handset of claim 9, wherein after establishing a connection with the web console, the method further comprises:
receiving a control instruction transmitted by the web console;
and calling the remote Shell service to execute the control instruction, and returning an execution result to the web console.
12. The Shell access method for a cloud handset according to any one of claims 9 to 11, wherein the method further comprises:
and when the cloud mobile phone is started, sending a connection request carrying a unique identifier to the control server.
13. The Shell access device of the cloud mobile phone is applied to a web console and comprises the following components: the device comprises a first sending module, a first receiving module and a display module;
the first receiving module is used for receiving a cloud mobile phone connection instruction aiming at a target cloud mobile phone;
the first sending module is used for sending the unique identifier of the target cloud mobile phone and the Shell connection instruction to the control server after the first receiving module receives the cloud mobile phone connection instruction aiming at the target cloud mobile phone;
the first receiving module is further configured to receive address information of the target cloud mobile phone, which is sent by the control server based on the unique identifier and the Shell connection instruction;
the first sending module is further configured to send a connection request to the target cloud mobile phone according to the address information;
the first receiving module is further configured to receive connection success information returned by the target cloud mobile phone;
the display module is used for displaying the Shell simulation picture after the first receiving module receives the connection success information returned by the target cloud mobile phone.
14. A Shell access device of a cloud mobile phone is applied to a control server and comprises the following components: the device comprises a second sending module, a second receiving module, a searching module, an obtaining module and a mapping module;
the second receiving module is used for receiving the unique identifier and the Shell connection instruction sent by the web console;
the searching module is used for searching a target cloud mobile phone according to the unique identifier when the second receiving module receives the unique identifier and the Shell connection instruction sent by the web console;
the second sending module is used for sending the Shell connection instruction to the target cloud mobile phone;
the obtaining module is used for obtaining a remote Shell service port of a remote Shell service started by the target cloud mobile phone according to the Shell connection instruction;
the mapping module is used for mapping the remote Shell service port to an external network to obtain the address information of the target cloud mobile phone in the external network;
the second sending module is further configured to send the address information to the web console, so that the web console establishes a connection with the target cloud mobile phone according to the address information.
15. A Shell access device of a cloud mobile phone is applied to the cloud mobile phone, and comprises the following components: the third sending module, the third receiving module, the configuration module and the connection module;
the third receiving module is used for receiving the Shell connection instruction transmitted by the control server;
the configuration module is used for starting the remote Shell service and distributing a remote Shell service port for the remote Shell service when the third receiving module receives a Shell connection instruction transmitted by the control server;
the third sending module is configured to send the remote Shell service port to the control server;
the third receiving module is further configured to receive a connection request sent by a web console;
the connection module is configured to establish a connection with the web console after the third receiving module receives the connection request sent by the web console.
16. An electronic device, comprising: the system comprises a data communication interface, a processor, a memory and a communication bus;
the data communication interface is used for receiving and sending data;
the communication bus is used for realizing connection communication among the data communication interface, the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the Shell access method of the cloud handset as recited in any one of claims 1-12.
17. A readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the Shell access method of a cloud handset as claimed in any one of claims 1 to 12.
CN202010083604.2A 2020-02-11 2020-02-11 Shell access method, device, equipment and storage medium of cloud mobile phone Active CN111314452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010083604.2A CN111314452B (en) 2020-02-11 2020-02-11 Shell access method, device, equipment and storage medium of cloud mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010083604.2A CN111314452B (en) 2020-02-11 2020-02-11 Shell access method, device, equipment and storage medium of cloud mobile phone

Publications (2)

Publication Number Publication Date
CN111314452A true CN111314452A (en) 2020-06-19
CN111314452B CN111314452B (en) 2022-08-26

Family

ID=71159871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010083604.2A Active CN111314452B (en) 2020-02-11 2020-02-11 Shell access method, device, equipment and storage medium of cloud mobile phone

Country Status (1)

Country Link
CN (1) CN111314452B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737157A (en) * 2020-08-10 2020-10-02 北京志翔科技股份有限公司 Concurrency test method and system for user graphical interface
CN111932246A (en) * 2020-08-06 2020-11-13 北京百度网讯科技有限公司 Method and apparatus for transmitting information
CN112003881A (en) * 2020-10-28 2020-11-27 湖南天琛信息科技有限公司 Safety cloud mobile phone system based on private cloud
CN113242275A (en) * 2021-04-12 2021-08-10 西安神鸟软件科技有限公司 Cloud mobile phone control method and device
CN113472956A (en) * 2021-09-03 2021-10-01 北京健康之家科技有限公司 Cloud mobile phone management method and device
CN114448965A (en) * 2021-12-22 2022-05-06 天翼云科技有限公司 Method, device and system for managing big data assembly and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102577327A (en) * 2011-12-26 2012-07-11 华为技术有限公司 Method, apparatus and system for realizing web browsing in remote desk environment
CN103051684A (en) * 2012-12-07 2013-04-17 百度在线网络技术(北京)有限公司 Method, system and device for converting website into Web App for displaying
CN103957237A (en) * 2014-04-03 2014-07-30 华南理工大学 Architecture of elastic cloud
US20150106905A1 (en) * 2013-10-14 2015-04-16 Alibaba Group Holding Limited Login method for client application and corresponding server
WO2015131524A1 (en) * 2014-09-25 2015-09-11 中兴通讯股份有限公司 Remote access server method and web server
CN106357609A (en) * 2016-08-22 2017-01-25 深圳市先河系统技术有限公司 User creation method and system, public network server and private cloud equipment
CN107818268A (en) * 2017-11-15 2018-03-20 中国联合网络通信集团有限公司 The access control method and server of big data platform
CN110502315A (en) * 2019-08-26 2019-11-26 浪潮云信息技术有限公司 A kind of method, apparatus and system remotely accessing physical machine

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102577327A (en) * 2011-12-26 2012-07-11 华为技术有限公司 Method, apparatus and system for realizing web browsing in remote desk environment
CN103051684A (en) * 2012-12-07 2013-04-17 百度在线网络技术(北京)有限公司 Method, system and device for converting website into Web App for displaying
US20150106905A1 (en) * 2013-10-14 2015-04-16 Alibaba Group Holding Limited Login method for client application and corresponding server
CN103957237A (en) * 2014-04-03 2014-07-30 华南理工大学 Architecture of elastic cloud
WO2015131524A1 (en) * 2014-09-25 2015-09-11 中兴通讯股份有限公司 Remote access server method and web server
CN106357609A (en) * 2016-08-22 2017-01-25 深圳市先河系统技术有限公司 User creation method and system, public network server and private cloud equipment
CN107818268A (en) * 2017-11-15 2018-03-20 中国联合网络通信集团有限公司 The access control method and server of big data platform
CN110502315A (en) * 2019-08-26 2019-11-26 浪潮云信息技术有限公司 A kind of method, apparatus and system remotely accessing physical machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YIYANG LI等: ""Implementation of web-based platform for IC design and project management"", 《2009 3RD INTERNATIONAL CONFERENCE ON ANTI-COUNTERFEITING, SECURITY, AND IDENTIFICATION IN COMMUNICATION》 *
曹玮: ""基于SSH协议的WebShell系统的设计与实现"", 《中国硕士学位论文全文数据库信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932246A (en) * 2020-08-06 2020-11-13 北京百度网讯科技有限公司 Method and apparatus for transmitting information
CN111932246B (en) * 2020-08-06 2023-06-23 北京百度网讯科技有限公司 Method and device for transmitting information
CN111737157A (en) * 2020-08-10 2020-10-02 北京志翔科技股份有限公司 Concurrency test method and system for user graphical interface
CN112003881A (en) * 2020-10-28 2020-11-27 湖南天琛信息科技有限公司 Safety cloud mobile phone system based on private cloud
CN113242275A (en) * 2021-04-12 2021-08-10 西安神鸟软件科技有限公司 Cloud mobile phone control method and device
CN113472956A (en) * 2021-09-03 2021-10-01 北京健康之家科技有限公司 Cloud mobile phone management method and device
CN114448965A (en) * 2021-12-22 2022-05-06 天翼云科技有限公司 Method, device and system for managing big data assembly and readable storage medium

Also Published As

Publication number Publication date
CN111314452B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
CN111314452B (en) Shell access method, device, equipment and storage medium of cloud mobile phone
CN110266480B (en) Data transmission method, device and storage medium
CN108632253B (en) Client data security access method and device based on mobile terminal
CN110300133B (en) Cross-domain data transmission method, device, equipment and storage medium
EP3386167B1 (en) Cloud operation interface sharing method, related device and system
CN107133516B (en) Authority control method and system
WO2017041562A1 (en) Method and device for identifying user identity of terminal device
CN107528865A (en) The method for down loading and system of file
CN111918274B (en) Code number configuration and management method and device, electronic equipment and readable storage medium
CN114257440B (en) Network function service discovery method, system and storage medium
CN112597039A (en) Virtual machine access method, system, device and computer readable storage medium
US8326919B1 (en) Network address translation auto-discovery in data storage networks
CN111241523B (en) Authentication processing method, device, equipment and storage medium
CN107819729B (en) Data request method and system, access device, storage device and storage medium
CN112162873A (en) Remote calling method, electronic device and storage medium
CN115801299B (en) Meta universe identity authentication method, device, equipment and storage medium
CN110572375B (en) IP address proxy method and device
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
JP2017528091A (en) Communication link transmission method, apparatus and terminal
CN107094140B (en) Session-based permission control method and system
CN113691545B (en) Routing control method and device, electronic equipment and computer readable medium
CN117278323B (en) Third party information acquisition method, electronic equipment and readable storage medium
CN110099275B (en) Application testing method, device, equipment and storage medium
CN117240618B (en) Household cloud box access method, device, equipment and storage medium
CN112019504B (en) Method and device for acquiring wifi dynamic verification code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant