CN112565458A - Platform remote control method and device, storage medium and electronic equipment - Google Patents

Platform remote control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112565458A
CN112565458A CN202011568901.2A CN202011568901A CN112565458A CN 112565458 A CN112565458 A CN 112565458A CN 202011568901 A CN202011568901 A CN 202011568901A CN 112565458 A CN112565458 A CN 112565458A
Authority
CN
China
Prior art keywords
platform
target
remote control
file
port
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
CN202011568901.2A
Other languages
Chinese (zh)
Other versions
CN112565458B (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.)
Beijing Dbsec Technology Co ltd
Original Assignee
Beijing Dbsec Technology 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 Beijing Dbsec Technology Co ltd filed Critical Beijing Dbsec Technology Co ltd
Priority to CN202011568901.2A priority Critical patent/CN112565458B/en
Publication of CN112565458A publication Critical patent/CN112565458A/en
Application granted granted Critical
Publication of CN112565458B publication Critical patent/CN112565458B/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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a platform remote control method and device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: acquiring platform information of a target platform, wherein the platform information comprises a port identifier of a remote connection port of the target platform; establishing session connection between a current platform and a target platform according to the platform information; transmitting a remote control instruction to a target platform through session connection; and under the condition that the remote control instruction indicates that a file transmission channel between the target platform and the current platform is established and the file transmission channel is established, transmitting the target file to the target platform through the file transmission channel. The invention solves the technical problem that the remote control operation between platforms is more complicated.

Description

Platform remote control method and device, storage medium and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a method and a device for remotely controlling a platform, a storage medium and electronic equipment.
Background
An operating system is the system software in a computer system that is responsible for supporting the running of applications and the operating environment of a user. Different operating systems constitute different types of execution platforms. Common operating systems include Android, IOS, Unix, Linux, MacOS, Windows, and the like.
Because remote control protocols supported by different operating systems are different, the problem that the remote control connection between two different platforms cannot be realized or the realization steps are complicated often exists. For example, Windows cannot directly support a Secure Shell (SSH) protocol, so Linux cannot directly perform remote control on Windows, and file transmission cannot be achieved.
In the prior art, the problem that remote control connection cannot be directly realized exists among operating systems, so that the remote control connection between platforms and the operation of file transmission are complicated.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for remotely controlling platforms, a storage medium and electronic equipment, which are used for at least solving the technical problem that remote control operation between platforms is complicated.
According to an aspect of an embodiment of the present invention, there is provided a platform remote control method, including: acquiring platform information of a target platform, wherein the platform information comprises a port identifier of a remote connection port of the target platform; establishing a session connection between a current platform and the target platform according to the platform information; transmitting a remote control instruction to the target platform through the session connection; and transmitting the target file to the target platform through the file transmission channel under the condition that the remote control instruction indicates that a file transmission channel between the target platform and the current platform is established and the file transmission channel is established.
According to another aspect of the embodiments of the present invention, there is also provided a platform remote control apparatus, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring platform information of a target platform, and the platform information comprises a port identifier of a remote connection port of the target platform; a creating module, configured to create a session connection between the current platform and the target platform according to the platform information; the first transmission module is used for transmitting a remote control instruction to the target platform through the session connection; and a second transmission module, configured to transmit a target file to the target platform through the file transmission channel when the remote control instruction instructs to establish a file transmission channel between the target platform and the current platform and the file transmission channel is established.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned platform remote control method when running.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the platform remote control method through the computer program.
In the embodiment of the invention, platform information of a target platform is acquired, session connection with a remote connection port of the target platform is established according to the platform information, a remote control instruction for establishing a file transmission channel is sent based on the session connection, and under the condition that the file transmission channel is established, a file is transmitted to the target platform through the file transmission channel.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative platform remote control method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a flow of an alternative platform remote control method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a flow of yet another alternative platform remote control method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a flow of yet another alternative platform remote control method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a flow of yet another alternative platform remote control method according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an alternative platform remote control according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present invention, a method for remotely controlling a platform is provided, and optionally, as an optional implementation, the method for remotely controlling a platform may be applied to, but not limited to, an environment as shown in fig. 1. The current platform 104 enables remote control of the target platform 106 over the network 110.
The current platform 104 runs in terminal device one 114 and the target platform 106 runs in terminal device two 116. And the first terminal device 114 realizes data interaction with the second terminal device 116 through the network 110. When the current platform 104 in the first terminal device 114 implements remote control on the target platform 106, platform information of the target platform 106 is obtained, where the platform information includes a port identifier of a remote connection port of the target platform. The current platform 104 creates a session connection with the target platform 106 based on the network 110 through the acquired platform information. In the case of session connection creation, the current platform 104 transmits a remote control instruction to the target platform 106 through the session connection, and instructs the target platform 106 to execute a corresponding operation according to the remote control instruction, thereby implementing remote control on the target platform 106. Under the condition that the remote control instruction transmitted by the current platform 104 to the target platform 106 through the session connection indicates that a file transmission channel between the target platform 106 and the current platform 104 is established, and the file transmission channel is established, the file is transmitted from the current platform 104 to the target platform 106 through the file transmission channel. It should be noted that the remote control is implemented by the current platform 104 to the target platform 106 in one way, and the data interaction is implemented based on the network 110 in two ways.
Optionally, in this embodiment, the terminal device may be a terminal device configured with a current platform and a target platform, and may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The current platform and the target platform may be operating platforms constructed by two operating systems capable of simultaneously running in the terminal device. The operating system corresponding to the current platform may be, but is not limited to: android, IOS, Unix, Linux, MacOS, Windows, etc. The operating system corresponding to the target platform may be, but is not limited to: android, IOS, Unix, Linux, MacOS, Windows, etc. Such networks may include, but are not limited to: a virtual network, a wired network, a wireless network, wherein the virtual network may be a virtual connection network environment established based on the network. The wired network includes: local area network, metropolitan area network and wide area network, the wireless network includes: bluetooth, WIFI, and other networks that enable wireless communication.
As an alternative implementation, as shown in fig. 2, the platform remote control method includes:
s202, platform information of the target platform is obtained, wherein the platform information comprises a port identification of a remote connection port of the target platform;
s204, establishing session connection between the current platform and the target platform according to the platform information;
s206, transmitting a remote control instruction to the target platform through session connection;
and S208, under the condition that the remote control instruction indicates that a file transmission channel between the target platform and the current platform is established and the file transmission channel is established, transmitting the target file to the target platform through the file transmission channel.
Optionally, the platform information is information for indicating that the target platform is for remote connection. Platform information may include, but is not limited to: the type of the device comprises a platform address, a remote connection address, a port identifier of a remote connection port, a user name, a platform password and a remote connection password.
Optionally, the type to which the target platform belongs is used to indicate a type corresponding to an operating system run by the target platform. The operating system types may be, but are not limited to: android, IOS, Unix, Linux, MacOS, Windows.
Alternatively, the platform address may be, but is not limited to, an Internet Protocol (IP) address indicating a target platform, and a physical address of the platform. And identifying the address of the terminal where the platform is located or the communication address of the platform through the platform address.
Optionally, the remote connection address is used to indicate an address where the platform can implement remote connection, and may be, but is not limited to, indicate an address of a function module that implements remote connection, and an address of a connection port that implements remote connection.
Alternatively, the port identification of the remote connection port may be, but is not limited to, the port identification of all ports that enable remote connection, specifying the port identification for the remote connection port. And under the condition that the port is determined to be used for the remote connection of the time, the port identification of the remote connection port indicates the specified port identification of the remote connection port, and the remote connection is established based on the remote connection port corresponding to the port identification.
Alternatively, the username may be, but is not limited to, the username of the current login platform.
Alternatively, the platform password may be, but is not limited to, a password required for opening the platform operation interface, and a management password set by a user currently logging in the platform.
Alternatively, the remote management password may be, but is not limited to, a password for controlling establishment of a remote connection with the target platform, and a password for managing the remote connection with the target platform.
Alternatively, the session connection may be, but is not limited to, a transmission channel for transmitting instruction data corresponding to the control instruction. The instruction data may be, but is not limited to, a data form corresponding to the control instruction, and the data form is not limited herein.
Alternatively, the remote control instruction transmitted over the session connection may be, but is not limited to being, capable of being transmitted over the session connection in the form of an instruction string. The remote control instruction may be, but is not limited to, instructing execution of a control operation corresponding to the instruction in the target platform. The control operation may be, but is not limited to, an operation that can be executed in the target platform based on a form of an instruction string.
Optionally, the file format that the file transmission channel can transmit is not limited, and the formed file can be stored in any format. For example: document files, audio-video files, compression package files, installation package files, to name just an example.
Optionally, the target file is transmitted through the file transmission channel, but not limited to, the current platform sends the file to the target platform through the file transmission channel, and the target platform obtains the file from the current platform through the file transmission channel. The target platform may obtain the file from the current platform through the file transfer channel, but is not limited to: copying and downloading.
In the embodiment of the application, platform information of a target platform is acquired, session connection with a remote connection port of the target platform is established according to the platform information, a remote control instruction for establishing a file transmission channel is sent based on the session connection, and under the condition that the file transmission channel is established, a file is transmitted to the target platform through the file transmission channel in a mode of establishing the session connection according to the platform information and establishing the file transmission channel and transmitting the file in a remote control instruction form based on the session connection, so that the aims of simplifying establishment of the remote session connection of the platform and remote file transmission operation are fulfilled, the technical effect of simplifying the remote control operation is achieved, and the technical problem that the remote control operation between the platforms is complicated is solved.
Alternatively, the remote connection port may be, but is not limited to, a port in a functional module on the target platform that supports remote connections. The remote connection module may be, but is not limited to, a functional module used by the target platform to run a remote management protocol.
Alternatively, the remote management protocol may be, but is not limited to: a Remote Desktop Protocol (RDP), a Remote Frame Buffer (RFB), a command line interface remote management (Telnet), and a Secure Shell (SSH).
Optionally, the remotely connected function module determines the remotely managed module based on the type of platform on which it is located. In the case where the platform supports a plurality of remote management protocols, a module for establishing a remote connection for the session connection is determined from the plurality of remote management protocols. For example, in the case where the platform is Linux, the remotely connected function module may be, but is not limited to, an SSH function module. In the case where the platform is Windows, the remotely connected function module may be, but is not limited to, a winRM module.
Alternatively, the invocation of the remotely connected function module may be invoked, but is not limited to, through a cross-platform computer programming language. The programming language that can invoke the remotely connected function module may be, but is not limited to: c language, C + +, Java, Perl, Tcl, Erlang, Python, php.
As an optional implementation manner, the target platform is a Windows platform, and the current platform is: a Linux platform.
Optionally, as shown in fig. 3, taking the current platform as a Linux platform and the target platform as a Windows platform as an example, the process of establishing the session connection may be, but is not limited to: executing S302, the target platform starts the winRM service. The winRM service is a remote management service in a Windows platform server. And executing S304 under the condition that the winRM service of the Windows platform is started, wherein the Linux platform acquires the IP address of the Windows platform, the port identification of the winRM port, the user name and the connection password. And executing S306 under the condition that the Linux platform acquires the platform information of the Windows platform, and calling a Python script by the Linux platform according to the information of the Windows platform to establish session connection with the winRM port. Therefore, the remote session connection of the Linux platform to the Windows platform is realized through remote control.
As an alternative embodiment, as shown in fig. 4, the transmitting the remote control command to the target platform through the session connection includes:
s402, converting the remote control instruction into a corresponding instruction character string;
s404, transcoding the command character string according to the target coding format matched with the session connection to obtain a transcoding result;
and S406, transmitting the transcoding result through the session connection.
Optionally, the remote control instruction is input to the session connection in the form of a corresponding instruction string.
Optionally, before the session connection transmits the instruction string, the session connection converts the input instruction string into a transcoding result according to the target encoding format, and transmits the transcoding result through the session connection in the format of the transcoding result.
Optionally, after the target platform receives the transcoding result, the transcoding result is converted into an instruction character string based on the target encoding format. And the target platform executes the operation corresponding to the instruction based on the instruction character string obtained by analysis.
In the embodiment of the application, the input format of the session connection is defined, and the input command character string is encoded and converted, so that the transmission safety of the control command transmitted in the session connection is ensured, and the data transmission safety of the session connection is ensured.
As an optional implementation, the transmitting the target file to the target platform through the file transmission channel includes:
under the condition that the remote control instruction carries a storage position of a target file, acquiring a file acquisition request sent by a target platform, wherein the file acquisition request is used for requesting to acquire the target file;
and responding to the file acquisition request, and sending the target file to the target platform through the file transmission channel.
Optionally, the storage location of the target file is entered into the session connection in the format of an instruction string. And under the condition that the target platform analyzes the file storage position from the received instruction character string, determining that the current platform indicates the target platform to acquire the file from the storage position.
Alternatively, the file acquisition request may be, but is not limited to, a file transfer request, a file copy request, and a file download request.
Optionally, the sending of the target file to the target platform through the file transfer channel may be, but is not limited to, the current platform sending the target file to the target platform based on the file transfer request, the target platform copying the target file through the file transfer channel according to the storage location, and the target platform downloading the target file through the file transfer channel according to the storage location.
Optionally, the target platform downloads the target file through the file transmission channel according to the storage location, but not limited to, through a session connection, and the current platform sends a remote control instruction corresponding to the downloaded file to enable the target platform to download the target file.
As an optional implementation manner, before transmitting the target file to the target platform through the file transmission channel, the method further includes:
under the condition that a target port is appointed by a current platform, adding a port identification of the target port into a firewall list of the current platform, wherein the target port is a communication port in a network transmission server of the current platform;
and under the condition that the remote control instruction carries the port identification of the target port, indicating the target platform to establish a file transmission channel with the target port.
Optionally, the current platform determines a communication port for the file transfer channel among communication ports included in the network transfer server.
Optionally, before establishing the file transfer channel, the current platform starts a network transfer server to support establishment and operation of the file transfer channel.
Optionally, when the current platform is provided with a firewall and the firewall is turned on, adding the port identifier of the target port to the firewall list, so as to communicate with the current platform through the target port.
Optionally, in a case that the firewall is not set in the current platform or the firewall is not opened, the target port is in a state capable of connecting and communicating.
As an optional implementation manner, after instructing the target platform to establish a file transfer channel with the target port, the method further includes:
and responding to the remote control instruction, the target platform establishes a file transmission channel with the target port based on the data sharing framework.
Optionally, when the current platform has added the target port to the firewall list, the remote control instruction carries a port identifier of the target port, and the current platform instructs the target platform to establish the file transfer channel.
Alternatively, the data sharing framework can be, but is not limited to, a service or protocol supporting remote file transfer in the target platform, and can be, but is not limited to, a.net framework, a JAVA framework, a PHP framework.
Optionally, the data sharing framework used is determined according to the type of the target platform. Taking the target platform as the Windows platform as an example, the data sharing framework can be, but is not limited to, a.net framework. And constructing a file transmission channel between the target port and the port identification of the target port contained in the Net framework and the remote control instruction.
In the embodiment of the application, the establishment of the file transmission channel between the platforms is realized through the establishment instruction of the session connection transmission file transmission channel, and meanwhile, the file transmission is realized through the session connection transmission file transmission instruction, so that the remote control operation of the platform is simplified, and the establishment and the file transmission of the platform remote file transmission channel can be conveniently realized.
Optionally, as shown in fig. 5, taking the current platform as a Linux platform, the target platform as a Windows platform, the network transmission server selects an http server on the Linux platform, and the data sharing frame selects a Net frame as an example, the flow for implementing establishment of the file transmission channel and file transmission through session connection may be, but is not limited to: and S502 is executed, the Linux platform determines that the port1 on the http server is the target port, starts the http server, and adds the identifier of the port1 to the Linux platform firewall list. In the case that the http server is already started and the port can be used as a communication interface, S504 is executed, and the Linux platform sends the remote control command carrying the port1 identifier to the Windows platform through the session connection. And executing S506 under the condition that the Windows platform analysis acquires the port1 identification, wherein the Windows platform utilizes the Net framework to establish a file transmission channel with the port 1. And executing S508 when the file transmission channel is established, wherein the Linux platform sends a control instruction carrying the storage position of the target file to the Windows platform through the session connection. And executing S510 under the condition that the Windows platform analyzes and acquires the file storage position, and initiating a request for downloading the target file to the http server by the Windows platform. In the case that the request passes, S512 is executed, and the Windows platform downloads the target file into the Windows platform through the file transfer channel.
As an optional implementation, after transmitting the remote control instruction to the target platform through the session connection, the method further includes:
and under the condition that the remote control instruction indicates that the remote control operation is performed on the target platform and the target platform completes the remote control operation, acquiring an execution result of the remote control operation returned by the target platform through session connection.
Optionally, in a case that the remote control instruction indicates that the control operation corresponding to the control instruction is executed in the target platform, the current platform inputs the remote control instruction in the session connection, and the target platform executes the corresponding control operation in the target platform based on the remote control instruction obtained by the parsing.
Alternatively, the control operation may be, but is not limited to, an operation that the target platform itself can perform in the form of a control instruction based on the operating system to which the target platform belongs, and may be, but is not limited to, information query and execution control.
Alternatively, the information query may be, but is not limited to, querying any information contained in the target platform, such as processor information, memory information, operating system information, program information, runtime information, and the like.
Alternatively, the operation control may be, but is not limited to, a control operation that controls the operation of the target platform, such as shutdown, restart, hibernation, program operation, program stop, program change, and the like.
Optionally, for example, when the remote control instruction instructs the target platform to perform a restart operation in the operation control, the current platform converts the remote control instruction instructing the restart into a corresponding instruction string and inputs the instruction string into the session connection, and the session connection transcodes and transmits the instruction string. And the target platform analyzes the transcoding result to obtain a restarted command character string, and restarts the target platform.
Optionally, after the target platform executes the control operation corresponding to the remote control instruction, an execution result obtained by executing the control operation is fed back to the current platform. The execution result may include, but is not limited to, information obtained by the target platform performing the control operation. The feedback of the execution result may be, but is not limited to, displaying information representing the execution result on the interface of the current platform.
Optionally, in a case where the target platform executes the remote control instruction to instruct the system to perform the query, the queried information is fed back to the current platform as an execution result. And under the condition that the target platform executes the remote control instruction to indicate execution of operation control, feeding back information of operation completion as an execution result to the current platform. For example, the information of the restart completion is fed back to the current platform as an execution result.
In the embodiment of the application, the remote control instruction is transmitted through session connection, so that the operation control and the information acquisition of the target platform are completed by inputting the instruction on the current platform, the execution result obtained by executing the control operation is obtained, the operation of cross-platform control and information acquisition is simplified, the operation required by platform remote control is reduced, and the technical effect of easily executing the platform remote control is realized.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided a platform remote control apparatus for implementing the above platform remote control method. As shown in fig. 6, the apparatus includes:
an obtaining module 602, configured to obtain platform information of a target platform, where the platform information includes a port identifier of a remote connection port of the target platform;
a creating module 604, configured to create a session connection between the current platform and the target platform according to the platform information;
a first transmission module 606, configured to transmit a remote control instruction to a target platform through a session connection;
the second transmission module 608 is configured to transmit the target file to the target platform through the file transmission channel when the remote control instruction indicates that the file transmission channel between the target platform and the current platform is established and the file transmission channel is already established.
Optionally, the first transmission module 606 includes:
the conversion unit is used for converting the remote control instruction into a corresponding instruction character string;
the transcoding unit is used for transcoding the instruction character string according to the target coding format matched with the session connection to obtain a transcoding result;
and the first transmission unit is used for transmitting the transcoding result through session connection.
Optionally, the second transmission module 608 includes:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a file acquisition request sent by a target platform under the condition that a storage position of a target file is carried in a remote control instruction, and the file acquisition request is used for requesting to acquire the target file;
and the second transmission unit is used for responding to the file acquisition request and sending the target file to the target platform through the file transmission channel.
Optionally, the platform remote control device further includes:
the device comprises an adding unit, a firewall list acquiring unit and a processing unit, wherein the adding unit is used for adding a port identifier of a target port into the firewall list of the current platform under the condition that the current platform specifies the target port, and the target port is a communication port in a network transmission server of the current platform;
and the establishing module is used for indicating the target platform to establish a file transmission channel with the target port under the condition that the remote control instruction carries the port identification of the target port.
Optionally, the establishing module includes:
and the indication establishing unit is used for responding to the remote control instruction under the condition that the remote control instruction indicates the establishment of the file transmission channel, and the target platform establishes the file transmission channel between the target platform and the target port based on the data sharing framework.
Optionally, the platform remote control device further includes:
and the execution unit is used for executing the remote control operation according to the remote control instruction under the condition that the remote control instruction instructs the remote control operation on the target platform, wherein the remote control operation instructs the execution of the instruction operation in the target platform.
Optionally, the platform remote control device further includes:
and the second acquisition unit is used for acquiring an execution result of the remote control operation through session connection, wherein the execution result comprises information obtained by the target platform executing the remote control operation.
In the embodiment of the application, platform information of a target platform is acquired, session connection with a remote connection port of the target platform is established according to the platform information, a remote control instruction for establishing a file transmission channel is sent based on the session connection, and under the condition that the file transmission channel is established, a file is transmitted to the target platform through the file transmission channel.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the platform remote control method, which may be, but is not limited to, the terminal device shown in fig. 1. As shown in fig. 7, the electronic device comprises a memory 702 and a processor 704, the memory 702 having stored therein a computer program, the processor 704 being arranged to perform the steps of any of the above-described method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, platform information of the target platform is obtained, wherein the platform information comprises a port identification of a remote connection port of the target platform;
s2, creating session connection between the current platform and the target platform according to the platform information;
s3, transmitting a remote control instruction to the target platform through session connection;
and S4, transmitting the target file to the target platform through the file transmission channel under the condition that the remote control instruction indicates that the file transmission channel between the target platform and the current platform is established and the file transmission channel is established.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, and a Mobile Internet Device (MID), a PAD, and the like. Fig. 7 does not limit the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the platform remote control method and apparatus in the embodiments of the present invention, and the processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, so as to implement the platform remote control method. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 702 can further include memory located remotely from the processor 704, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 702 may be, but not limited to, specifically configured to store information such as sample characteristics of the item and the target virtual resource account number. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, an obtaining module 602, a creating module 604, a first transmitting module 606, and a second transmitting module 608 in the platform remote control device. In addition, other module units in the platform remote control device may also be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmitting device 706 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 706 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 708 for displaying the information of the order to be processed; and a connection bus 710 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the platform remote control aspect described above. Wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, platform information of the target platform is obtained, wherein the platform information comprises a port identification of a remote connection port of the target platform;
s2, creating session connection between the current platform and the target platform according to the platform information;
s3, transmitting a remote control instruction to the target platform through session connection;
and S4, transmitting the target file to the target platform through the file transmission channel under the condition that the remote control instruction indicates that the file transmission channel between the target platform and the current platform is established and the file transmission channel is established.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be 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 through some interfaces, units or modules, and may be in an electrical or other form.
The 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.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for remotely controlling a platform, comprising:
acquiring platform information of a target platform, wherein the platform information comprises a port identifier of a remote connection port of the target platform;
establishing session connection between the current platform and the target platform according to the platform information;
transmitting a remote control instruction to the target platform through the session connection;
and transmitting a target file to the target platform through the file transmission channel under the condition that the remote control instruction indicates that a file transmission channel between the target platform and the current platform is established and the file transmission channel is established.
2. The method of claim 1, wherein transmitting the remote control command to the target platform over the session connection comprises:
converting the remote control instruction into a corresponding instruction character string;
transcoding the instruction character string according to the target coding format matched with the session connection to obtain a transcoding result;
and transmitting the transcoding result through the session connection.
3. The method of claim 1, wherein said transferring a target file to said target platform via said file transfer channel comprises:
under the condition that the remote control instruction carries the storage position of the target file, acquiring a file acquisition request sent by the target platform, wherein the file acquisition request is used for requesting to acquire the target file;
and responding to the file acquisition request, and sending the target file to the target platform through the file transmission channel.
4. The method of claim 1, further comprising, prior to said transferring a target file to said target platform via said file transfer channel:
under the condition that the current platform specifies a target port, adding a port identifier of the target port into a firewall list of the current platform, wherein the target port is a communication port in a network transmission server of the current platform;
and under the condition that the remote control instruction carries the port identification of the target port, indicating the target platform to establish the file transmission channel between the target platform and the target port.
5. The method of claim 4, further comprising, after said instructing the target platform to establish the file transfer channel with the target port:
in response to the remote control instruction, the target platform establishes the file transfer channel with the target port based on a data sharing framework.
6. The method of claim 1, wherein after said transmitting a remote control command to said target platform over said session connection, said method further comprises:
and under the condition that the remote control instruction indicates that the remote control operation is performed on the target platform and the target platform completes the remote control operation, acquiring an execution result of the remote control operation returned by the target platform through the session connection.
7. The method of any one of claims 1 to 6, wherein the target platform is a Windows platform and the current platform is: a Linux platform.
8. A platform remote control apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring platform information of a target platform, and the platform information comprises a port identifier of a remote connection port of the target platform;
the creating module is used for creating session connection between the current platform and the target platform according to the platform information;
the first transmission module is used for transmitting a remote control instruction to the target platform through the session connection;
and the second transmission module is used for transmitting the target file to the target platform through the file transmission channel under the condition that the remote control instruction indicates that the file transmission channel between the target platform and the current platform is established and the file transmission channel is established.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202011568901.2A 2020-12-25 2020-12-25 Platform remote control method and device, storage medium and electronic equipment Active CN112565458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011568901.2A CN112565458B (en) 2020-12-25 2020-12-25 Platform remote control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011568901.2A CN112565458B (en) 2020-12-25 2020-12-25 Platform remote control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112565458A true CN112565458A (en) 2021-03-26
CN112565458B CN112565458B (en) 2021-11-16

Family

ID=75033283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011568901.2A Active CN112565458B (en) 2020-12-25 2020-12-25 Platform remote control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112565458B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873014A (en) * 2021-09-03 2021-12-31 深圳市托奇科技有限公司 Instruction processing method capable of supporting mass equipment, terminal and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222521A (en) * 2008-01-21 2008-07-16 中兴通讯股份有限公司 File transfer method based on conversation launching protocol
CN104243230A (en) * 2013-06-24 2014-12-24 北京新媒传信科技有限公司 Method and device for obtaining monitoring data of Linux server
CN105721464A (en) * 2016-01-29 2016-06-29 四川秘无痕信息安全技术有限责任公司 Cross-platform data instant transmission method based on file sharing protocol
CN105791964A (en) * 2016-03-11 2016-07-20 传成文化传媒(上海)有限公司 Cross-platform media file playing method and system
CN106331163A (en) * 2016-09-30 2017-01-11 海尔优家智能科技(北京)有限公司 Method and device for controlling service platforms
CN109257420A (en) * 2018-08-29 2019-01-22 郑州云海信息技术有限公司 A kind of mutual transmission method of file and device
KR20190074723A (en) * 2017-12-20 2019-06-28 주식회사 케이티 System For Providing Remote Computing Service And Method Thereof
CN110535829A (en) * 2019-07-24 2019-12-03 视联动力信息技术股份有限公司 A kind of data interactive method and a kind of view networked system
CN110855736A (en) * 2019-09-20 2020-02-28 深圳市有方科技股份有限公司 File transfer method, file transfer apparatus, and computer-readable storage medium
CN111526192A (en) * 2020-04-15 2020-08-11 Oppo广东移动通信有限公司 Remote control method and device of terminal, terminal and computer readable storage medium
CN111831499A (en) * 2020-07-21 2020-10-27 北京千丁互联科技有限公司 Remote debugging method, device, server, readable storage medium and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222521A (en) * 2008-01-21 2008-07-16 中兴通讯股份有限公司 File transfer method based on conversation launching protocol
CN104243230A (en) * 2013-06-24 2014-12-24 北京新媒传信科技有限公司 Method and device for obtaining monitoring data of Linux server
CN105721464A (en) * 2016-01-29 2016-06-29 四川秘无痕信息安全技术有限责任公司 Cross-platform data instant transmission method based on file sharing protocol
CN105791964A (en) * 2016-03-11 2016-07-20 传成文化传媒(上海)有限公司 Cross-platform media file playing method and system
CN106331163A (en) * 2016-09-30 2017-01-11 海尔优家智能科技(北京)有限公司 Method and device for controlling service platforms
KR20190074723A (en) * 2017-12-20 2019-06-28 주식회사 케이티 System For Providing Remote Computing Service And Method Thereof
CN109257420A (en) * 2018-08-29 2019-01-22 郑州云海信息技术有限公司 A kind of mutual transmission method of file and device
CN110535829A (en) * 2019-07-24 2019-12-03 视联动力信息技术股份有限公司 A kind of data interactive method and a kind of view networked system
CN110855736A (en) * 2019-09-20 2020-02-28 深圳市有方科技股份有限公司 File transfer method, file transfer apparatus, and computer-readable storage medium
CN111526192A (en) * 2020-04-15 2020-08-11 Oppo广东移动通信有限公司 Remote control method and device of terminal, terminal and computer readable storage medium
CN111831499A (en) * 2020-07-21 2020-10-27 北京千丁互联科技有限公司 Remote debugging method, device, server, readable storage medium and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋强等: "基于嵌入式Linux下安全文件传输系统的设计", 《吉林大学学报(信息科学版)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873014A (en) * 2021-09-03 2021-12-31 深圳市托奇科技有限公司 Instruction processing method capable of supporting mass equipment, terminal and storage medium

Also Published As

Publication number Publication date
CN112565458B (en) 2021-11-16

Similar Documents

Publication Publication Date Title
EP2989848B1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
US11140162B2 (en) Response method and system in virtual network computing authentication, and proxy server
US20130275492A1 (en) Enabling Web Clients to Provide Web Services
JP6072132B2 (en) Method of establishing a communication path using active connection of relay server of mobile terminal
US20120226998A1 (en) Providing hosted virtual desktop infrastructure services
CN112399130B (en) Processing method and device of cloud video conference information, storage medium and communication equipment
CN110177128B (en) Data transmission system and method for establishing VPN connection, terminal and VPN proxy thereof
CN106679095B (en) A kind of method, apparatus and intelligent air-conditioning system of interconnection access
EP2710468A1 (en) Smartphone apps in a cloud
WO2017040931A1 (en) Methods and apparatus for enhancing native service layer device management functionality
CN112165480A (en) Information acquisition method and device and electronic equipment
US10367894B2 (en) Information processing apparatus, method for controlling the same, non-transitory computer-readable storage medium, and information processing system
CN112565458B (en) Platform remote control method and device, storage medium and electronic equipment
EP3979071B1 (en) Method, user equipment, and application server for downloading application
WO2018072095A1 (en) Load testing management method and system
CN108989157B (en) Method and device for controlling intelligent equipment
CN106657076B (en) TCP service implementation method and device for network name space
KR100989179B1 (en) A system that provides virtual secure connections between a terminal and a web server on a relay server-based web browsing environment and operating method thereof
KR20220006605A (en) Cloud communication method and device, user device, network device
KR101447504B1 (en) User terminal and data sharing method between applications thereof
JP6516539B2 (en) Communication device, communication method, and program
KR101251099B1 (en) Method for monitoring a process of remote access and system for monitoring a process of remote access
CN112398718A (en) Network transmission method and device, electronic equipment and storage medium
JP6728745B2 (en) Server and system
KR101561524B1 (en) System for managing Remote User Interface and Method thereof

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