CN108366103B - Remote connection method, device, computer equipment and storage medium - Google Patents

Remote connection method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108366103B
CN108366103B CN201810083258.0A CN201810083258A CN108366103B CN 108366103 B CN108366103 B CN 108366103B CN 201810083258 A CN201810083258 A CN 201810083258A CN 108366103 B CN108366103 B CN 108366103B
Authority
CN
China
Prior art keywords
server
host
connection
cloud desktop
domain name
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.)
Active
Application number
CN201810083258.0A
Other languages
Chinese (zh)
Other versions
CN108366103A (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.)
GCI Science and Technology Co Ltd
Original Assignee
GCI Science and 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 GCI Science and Technology Co Ltd filed Critical GCI Science and Technology Co Ltd
Priority to CN201810083258.0A priority Critical patent/CN108366103B/en
Publication of CN108366103A publication Critical patent/CN108366103A/en
Application granted granted Critical
Publication of CN108366103B publication Critical patent/CN108366103B/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/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • 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/08Protocols specially adapted for terminal emulation, e.g. Telnet

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present application relates to a remote connection method, system, computer device and storage medium. The remote connection method comprises the following steps: sending a connection request to a server, triggering the server to detect whether the cloud desktop address of the server can be connected, and receiving a connection parameter returned by the server; when the cloud desktop address of the server side can not be connected, intercepting the domain name of a host of the server side from the connection parameters, and detecting whether the host can resolve the domain name of the host of the server side; if the domain name of the server side host can be analyzed, the host where the domain name of the server side host is located is utilized to analyze the domain name of the server side host, and a connection instruction containing the domain name of the server side host is called to carry out remote connection with the cloud desktop of the server side. By adopting the method, when the cloud desktop address of the server fails and cannot be connected, the client can be remotely connected with the server through other server parameters.

Description

Remote connection method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a remote connection method, apparatus, computer device, and storage medium.
Background
The management of the cloud desktop at the background is an important module in many cloud management platforms, and in a Windows system, remote connection with a terminal server or other remote computers needs to be established when the cloud desktop is managed.
In a traditional remote connection mode, a client remotely logs in a cloud desktop of a server to manage the cloud desktop through an MSTSC (remote desktop client) in a system. RDP (Remote Desktop Protocol) used in the process of remotely logging in the cloud Desktop needs to depend on an IP (Internet Protocol) address of the cloud Desktop. However, when the IP address of the cloud desktop fails, the client cannot be connected to the cloud desktop.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a remote connection method, apparatus, computer device, and storage medium that can access a cloud desktop without using an IP address.
A remote connection method, the method comprising:
sending a connection request to a server, triggering the server to detect whether the cloud desktop address of the server can be connected or not, and receiving a connection parameter returned by the server;
when the cloud desktop address of the server side can not be connected, intercepting a host domain name of the server side from the connection parameters, and detecting whether the host where the server side is located can resolve the host domain name of the server side;
and if the domain name can be analyzed, analyzing the domain name of the server host by using the host where the domain name can be analyzed, and establishing remote connection with the cloud desktop of the server according to the domain name of the server host.
In one embodiment, in the remote connection method, the step of sending a connection request to a server, triggering the server to detect whether a cloud desktop address of the server is reachable, and receiving a connection parameter returned by the server includes:
generating a key pair, and sending a connection request to a server, wherein the connection request carries a public key in the key pair, and the connection request is used for triggering the server to encrypt connection parameters through the public key to obtain a ciphertext;
and receiving a ciphertext sent by the server, and analyzing the ciphertext through a private key to obtain the connection parameter.
In one embodiment, the remote connection method further includes:
if the host can not analyze the domain name of the server-side host, adding the mapping of the client-side host file locally, and calling a connection instruction containing the domain name of the server-side host according to the mapping to remotely connect with the cloud desktop of the server.
In one embodiment, the remote connection method further includes:
when the server cloud desktop address can be connected, adding login credentials in a local system according to the server cloud desktop address;
and calling a connection instruction containing the server cloud desktop address according to the login credential to remotely connect with the server cloud desktop.
A remote connection method, the remote connection method comprising:
receiving a connection request sent by a client, detecting whether the cloud desktop address can be connected or not, and returning connection parameters to the client;
when the cloud desktop address can be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host;
and if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
A remote connection apparatus, the remote connection apparatus comprising:
the request module is used for sending a connection request to the server, triggering the server to detect whether the cloud desktop address of the server can be connected or not, and receiving a connection parameter returned by the server;
the intercepting module is used for intercepting the domain name of the host of the server from the connection parameters when the cloud desktop address of the server is not connectable, and detecting whether the host can resolve the domain name of the host of the server;
and the connection module is used for analyzing the domain name of the server side host by using the host where the connection module is located if the connection module can analyze the domain name, and establishing remote connection with the cloud desktop of the server side according to the domain name of the server side host.
A remote connection apparatus, the apparatus comprising:
the receiving module is used for receiving a connection request sent by the client, detecting whether the cloud desktop address can be connected or not, and returning connection parameters to the client;
the first triggering module is used for triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host when the cloud desktop address can be connected;
and the second triggering module is used for triggering the client to call a connection instruction containing the domain name of the server host to be connected with the server cloud desktop if the host where the client is located can analyze the domain name of the server host.
A remote connection system, the remote connection system comprising:
a server and a client;
the client is used for executing the following steps:
sending a connection request to a server, triggering the server to detect whether the cloud desktop address of the server can be connected or not, and receiving a connection parameter returned by the server;
when the cloud desktop address of the server side can not be connected, intercepting a host domain name of the server side from the connection parameters, and detecting whether the host where the server side is located can resolve the host domain name of the server side;
if the domain name can be analyzed, analyzing the domain name of the server host by using the host where the domain name can be analyzed, and establishing remote connection with a server cloud desktop according to the domain name of the server host;
the server is used for executing the following steps:
receiving a connection request sent by a client, detecting whether the cloud desktop address can be connected or not, and returning connection parameters to the client;
when the cloud desktop address can be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host;
and if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
sending a connection request to a server, triggering the server to detect whether the cloud desktop address of the server can be connected or not, and receiving a connection parameter returned by the server;
when the cloud desktop address of the server side can not be connected, intercepting a host domain name of the server side from the connection parameters, and detecting whether the host where the server side is located can resolve the host domain name of the server side;
if the domain name can be analyzed, analyzing the domain name of the server host by using the host where the domain name can be analyzed, and establishing remote connection with a server cloud desktop according to the domain name of the server host;
or the processor, when executing the computer program, implements the steps of:
receiving a connection request sent by a client, detecting whether the cloud desktop address can be connected or not, and returning connection parameters to the client;
when the cloud desktop address can be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host;
and if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
sending a connection request to a server, triggering the server to detect whether the cloud desktop address of the server can be connected or not, and receiving a connection parameter returned by the server;
when the cloud desktop address of the server side can not be connected, intercepting a host domain name of the server side from the connection parameters, and detecting whether the host where the server side is located can resolve the host domain name of the server side;
if the domain name can be analyzed, analyzing the domain name of the server host by using the host where the domain name can be analyzed, and establishing remote connection with a server cloud desktop according to the domain name of the server host;
or the computer program when executed by a processor implements the steps of:
receiving a connection request sent by a client, detecting whether the cloud desktop address can be connected or not, and returning connection parameters to the client;
when the cloud desktop address can be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host;
and if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
According to the remote connection method, the device, the computer equipment and the storage medium, when the server receives a connection request of the client, whether the cloud desktop address of the server is connectable or not is detected, the connection parameters are returned to the client, when the cloud desktop address of the server is not connectable, the domain name of the host of the server is intercepted from the connection parameters, when the domain name of the host of the server can be analyzed by the client, a connection instruction containing the domain name of the host of the server is called to carry out remote connection with the cloud desktop of the server, and when the cloud desktop address of the server fails and cannot be connected, the client is remotely connected with the server through other parameters of the server.
Drawings
FIG. 1 is a diagram of an application environment for a remote connection method in one embodiment;
FIG. 2 is a flow diagram illustrating a remote connection method in one embodiment;
FIG. 3 is a flow diagram illustrating an example of the encryption step for connection parameters;
FIG. 4 is a flow chart illustrating a remote connection method in yet another embodiment;
FIG. 5 is a flow chart illustrating a remote connection method in another embodiment;
FIG. 6 is a flow chart illustrating a remote connection method according to yet another embodiment;
FIG. 7 is a flow chart illustrating a remote connection method in yet another embodiment;
FIG. 8 is a block diagram of a remote connection device in one embodiment;
FIG. 9 is a block diagram of a remote connection device in another embodiment;
FIG. 10 is a timing diagram of a remote connection system in one embodiment;
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The technical solution provided in the embodiment of the present invention can be used in a scenario where browsers on various devices access websites quickly through clients, and an application hardware environment of the application hardware environment may be as shown in fig. 1, where fig. 1 is a schematic diagram of an application system structure of an embodiment, please refer to fig. 1, the technical solution of the present invention is applied to remote communication between a client 101 and a server 102, and the client 101 may include devices such as a personal computer, a smart phone, a tablet computer, and a personal digital assistant, but is not limited thereto. The client 101 may access a public network, such as the Internet, in a wired or wireless manner, and communicate with the server 102. The server 102 may run a browser, various communication tools, a web access tool, and the like, and a user may access the server 102 through an internet network using the browser and the like. The server in the server 102 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a remote connection method is provided, which is described by taking the method as an example applied to the client in fig. 1, and includes the following steps:
s201, sending a connection request to the server, triggering the server to detect whether the cloud desktop address of the server can be connected, and receiving a connection parameter returned by the server.
The connection parameter is a return value returned to the server when the server receives the connection request. The cloud desktop address may be an IP address of the cloud desktop. When the server receives a connection request sent by the client, whether the cloud desktop of the server is reachable (connectable) or not can be detected, if the cloud desktop is reachable, the return value can include the IP address of the cloud desktop, if the cloud desktop address is not reachable, the return value can not include the IP address of the cloud desktop, and the client can know whether the cloud desktop address of the server is reachable or not by judging whether the return value includes the IP address of the desktop or not. The return value may also include a connection mode for establishing communication between the client and the server. When the cloud desktop address is reachable, the connection mode may correspond to a virtual machine connection (VMconnect); when the cloud desktop address is not reachable, the connection mode may correspond to an MSTSC (remote desktop client).
S202, when the cloud desktop address of the server side cannot be connected, the domain name of the host of the server side can be intercepted from the connection parameters, and whether the host where the server side is located can resolve the domain name of the host of the server side is detected.
In the above step, the connection parameter may include a domain name of the server host, and when there is no cloud desktop IP in the return value, the client detects whether the client host can resolve the domain name of the server host, and performs the next operation according to the detection result.
And S203, if the domain name can be analyzed, analyzing the domain name of the server host by using the host where the domain name can be analyzed, and calling a connection instruction containing the domain name of the server host to remotely connect with the cloud desktop of the server.
In the above steps, if the client host can resolve the domain name of the server host, the VMconnect connection instruction may be directly invoked for connection, and in addition, the background of the server may also directly intercept related parameters of other servers, for example: and the user name and the password logged in by the server, the domain name and the IP of the server, the uuid of the cloud desktop and the like are returned to the client, and the client can modify the necessary configuration of the system and start the VMconnect for connection. The connection instruction can be' VMconnect host domain name cloud desktop uuid/user: host username/password: host password ".
In the remote connection method, the server detects whether the cloud desktop address of the server is connectable or not when receiving the connection request of the client, and returns the connection parameters to the client. When the cloud desktop address is connectable, the returned connection parameters may include a cloud desktop IP address, and when the cloud desktop address is not connectable, the returned connection parameters may not include the cloud desktop IP address. The client can judge whether the cloud desktop address is accessible by judging whether the connection parameters include the cloud desktop IP address. When the cloud desktop address of the server side cannot be connected, the domain name of the host machine of the server side is intercepted from the connection parameters, when the domain name of the host machine of the server side can be analyzed by the client side, a connection instruction containing the domain name of the host machine of the server side is called to carry out remote connection with the cloud desktop of the server side, when the cloud desktop address of the server side has a fault and cannot be connected, the client side is enabled to carry out remote connection with the server side through other parameters of the server side.
In one embodiment, as shown in fig. 3, for step S201, the connection parameters transmitted by the server and the client may be encrypted by the following steps:
s301, generating a key pair, and sending a connection request to a server, wherein the connection request carries a public key in the key pair, and the connection request is used for triggering the server to encrypt connection parameters through the public key to obtain a ciphertext;
in the above steps, the key is a parameter, which is a parameter input in an algorithm for converting a plaintext into a ciphertext or converting a ciphertext into a plaintext. The whole encryption and decryption processes can be completed only by using the public key and the private key in the key pair at the same time, and a pair of keys can be randomly generated by a user when the keys are generated and are respectively used as the public key and the private key of the user.
S302, receiving the ciphertext sent by the server, and analyzing the ciphertext through a private key to obtain a connection parameter. The connection parameter obtained by analyzing the ciphertext through the private key can be a plaintext parameter.
In the embodiment, the key pair generated by the client is adopted to encrypt the connection parameters transmitted by the server and the client, so that the safety of information transmission is improved.
In one embodiment, as shown in fig. 4, the remote connection method includes the steps of:
s401, sending a connection request to a server, triggering the server to detect whether a cloud desktop address of the server is connectable, and receiving a connection parameter returned by the server;
s402, when the cloud desktop address of the server cannot be connected, intercepting the domain name of the host of the server from the connection parameters, and detecting whether the host can resolve the domain name of the host of the server;
s4031, if the domain name of the server side host can be analyzed, the host where the domain name of the server side host is located is utilized to analyze the domain name of the server side host, and a connection instruction containing the domain name of the server side host is called to remotely connect with a cloud desktop of the server side;
s4032: if the cloud desktop cannot be analyzed, adding the mapping of the client host file locally, and calling a connection instruction containing the domain name of the server host according to the mapping to remotely connect with the server cloud desktop.
In the above embodiment, when step S4032 is executed, the domain name of the server host may be intercepted, and the IP of the server host may also be intercepted. In step S4032, the command format for locally adding the client host file may be "IP server host domain name". The type of connection instruction may be to call VMconnect connection.
In the embodiment, whether the cloud desktop address of the server is connectable or not is detected by the server when the connection request of the client is received, the connection parameter is returned to the client, when the cloud desktop address of the server is not connectable, the host domain name of the server is intercepted from the connection parameter, when the host domain name of the server can be analyzed by the client, a connection instruction containing the host domain name of the server is called to carry out remote connection with the cloud desktop of the server, and when the cloud desktop address of the server fails and cannot be connected, the client is remotely connected with the server through other parameters of the server.
In one embodiment, as shown in fig. 5, the remote connection method includes the steps of:
s501, generating a key pair, and sending a connection request to a server, wherein the connection request carries a public key in the key pair, and the connection request is used for triggering the server to encrypt a connection parameter through the public key to obtain a ciphertext;
s502, receiving a ciphertext sent by the server, and analyzing the ciphertext through a private key to obtain a connection parameter;
s503, when the cloud desktop address of the server side can not be connected, intercepting the domain name of the host of the server side from the connection parameters, and detecting whether the host can resolve the domain name of the host of the server side;
s5041, if the domain name can be analyzed, analyzing the domain name of the server host by using the host where the domain name can be analyzed, and calling a connection instruction containing the domain name of the server host to remotely connect with the cloud desktop of the server;
s5042, adding the mapping of the client host file locally, and calling a connection instruction containing the domain name of the server host according to the mapping to remotely connect with the cloud desktop of the server.
In the above embodiment, when step S502 is executed, the domain name of the server host may be intercepted, and the IP of the server host may also be intercepted. In step S5042, the format of the command for locally adding the client host file may be "IP server host domain name". The type of connection instruction may be to call VMconnect connection.
In the embodiment, whether the cloud desktop address of the server is connectable or not is detected by the server when the connection request of the client is received, the connection parameter is returned to the client, when the cloud desktop address of the server is not connectable, the host domain name of the server is intercepted from the connection parameter, when the host domain name of the server can be analyzed by the client, a connection instruction containing the host domain name of the server is called to carry out remote connection with the cloud desktop of the server, and when the cloud desktop address of the server fails and cannot be connected, the client is remotely connected with the server through other parameters of the server.
As shown in fig. 6, in one embodiment, the remote connection method includes the steps of:
s601, generating a key pair, and sending a connection request to a server, wherein the connection request carries a public key in the key pair, and the connection request is used for triggering the server to encrypt a connection parameter through the public key to obtain a ciphertext;
s602, receiving a ciphertext sent by the server, and analyzing the ciphertext through a private key to obtain a connection parameter;
when the cloud desktop address of the server side is not connectable, the following steps can be executed: s603, S6041, and S6042:
s603, when the cloud desktop address of the server side can not be connected, intercepting the domain name of the host of the server side from the connection parameters and detecting whether the host where the server side is located can resolve the domain name of the host of the server side;
s6041, if the domain name can be analyzed, analyzing the domain name of the server host by using the host where the domain name of the server host is located, and calling a connection instruction containing the domain name of the server host to remotely connect with the cloud desktop of the server;
s6042, if the file cannot be analyzed, adding the mapping of the client host file locally, and calling a connection instruction containing the domain name of the server host according to the mapping to remotely connect with the cloud desktop of the server
When the server cloud desktop address is connectable, S605 and S606 may be performed:
s605, when the cloud desktop address of the server side can be connected, adding login credentials in the local system according to the cloud desktop address of the server side;
and S606, calling a connection instruction containing the server cloud desktop address according to the login credential to remotely connect with the server cloud desktop.
For step S605, when the cloud desktop address of the server is connectable, the connection mode of the communication between the client and the server may be MSTSC, the client may use the IP, the user name, and the password of the cloud desktop, and the client adds a Windows login credential to its own system, where the login credential may be "cmd key/genetic: IP/user: name/pass: password ".
For step S606, the connection instruction of the cloud desktop address of the server may be to connect by calling the MSTSC, and the specific call instruction may be "MSTSC/v: ip ".
In the embodiment, by judging whether the cloud desktop IP is reachable or not, according to different implementation manners of the MSTSC and the VMconnect, the adaptation module processes the connection parameters by different methods to ensure the correctness of calling, and in addition, the client and the server communicate in an encrypted manner to enhance the safety of the system.
In an embodiment, the remote connection method is applied to the server in fig. 1 as an example, and as shown in fig. 7, the remote method includes:
s701, receiving a connection request sent by a client, detecting whether a cloud desktop address can be connected, and returning connection parameters to the client;
s702, when the cloud desktop address can be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host;
and S703, if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
The above embodiment describes steps performed by the server after receiving a connection request of the client, and when the cloud desktop address is connectable, the corresponding connection type may be VMconnect.
According to the remote connection method, when a server receives a connection request of a client, whether a server cloud desktop address is connectable or not is detected, connection parameters are returned to the client, when the server cloud desktop address is not connectable, a server host domain name is intercepted from the connection parameters, when the client can analyze the server host domain name, a connection instruction containing the server host domain name is called to carry out remote connection with the server cloud desktop, and when the server cloud desktop address fails and is not connectable, the client is remotely connected with the server through other server parameters.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided a remote connection apparatus including: request module, intercept module and connection module, wherein:
the request module 81 is configured to send a connection request to the server, trigger the server to detect whether a cloud desktop address of the server is connectable, and receive a connection parameter returned by the server;
the intercepting module 82 is used for intercepting the domain name of the server host from the connection parameters when the cloud desktop address of the server is not connectable, and detecting whether the host can resolve the domain name of the server host;
and the connection module 83 is configured to, if the domain name can be analyzed, analyze the domain name of the server host by using the host where the domain name can be analyzed, and call a connection instruction containing the domain name of the server host to perform remote connection with the server cloud desktop.
In one embodiment, the request module 81 in the remote connection device may include:
the system comprises a key generation module, a connection request generation module and a connection request sending module, wherein the key generation module is used for generating a key pair and sending the connection request to a server, the connection request carries a public key in the key pair, and the connection request is used for triggering the server to encrypt connection parameters through the public key to obtain a ciphertext;
and the analysis module is used for receiving the ciphertext sent by the server and analyzing the ciphertext through a private key to obtain the connection parameter.
In one embodiment, the remote connection device may further include:
and the first connection module is used for adding the mapping of the client host file locally if the host in which the client host is located can not analyze the domain name of the server host, and calling a connection instruction containing the domain name of the server host according to the mapping to remotely connect with the cloud desktop of the server.
In one embodiment, the remote connection device may further include:
the adding module is used for adding login credentials in a local system according to the cloud desktop address of the server side when the cloud desktop address of the server side can be connected;
and the second connection module is used for calling a connection instruction containing the server cloud desktop address according to the login credential to remotely connect with the server cloud desktop.
In one embodiment, as shown in fig. 9, there is provided a remote connection apparatus including: receiving module, first intercepting module and first intercepting module, wherein:
the receiving module 91 is configured to receive a connection request sent by a client, detect whether a cloud desktop address is connectable, and return a connection parameter to the client;
the first triggering module 92 is configured to, when the cloud desktop address is connectable, trigger the client to intercept the domain name of the server host from the connection parameter and check whether the client host can resolve the domain name of the server host;
and a second triggering module 93, configured to trigger the client to invoke a connection instruction including the domain name of the server host to connect to the server cloud desktop if the host where the client is located can resolve the domain name of the server host.
For specific limitations of the remote connection device, reference may be made to the above limitations of the remote connection method, which are not described herein again. The various modules in the remote connection described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
It should be noted that the terms "first \ second \ third" related to the embodiments of the present invention are merely used for distinguishing similar objects, and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may exchange a specific order or sequence order if allowed. It should be understood that the terms first, second, and third, as used herein, are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or otherwise described herein.
The terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or (module) elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In one embodiment, a remote connection system, comprising: a server and a client. Fig. 10 is a timing diagram illustrating the interaction between the server and the client, which includes the following steps:
(1): the client sends a connection request to the server;
(2): after receiving the connection request, the server detects whether the cloud desktop address can be connected;
(3): the server side sends connection parameters to the client side;
(4): if the cloud desktop address can not be connected, the client intercepts the host domain name in the connection parameters and analyzes the host domain name;
(5): calling a connection instruction of the host containing the domain name of the server according to the result obtained by the analysis;
(6): and carrying out remote connection with the server according to the connection instruction.
The client is used for executing the following steps in fig. 2:
s201, sending a connection request to a server, triggering the server to detect whether a cloud desktop address of the server is connectable, and receiving a connection parameter returned by the server;
s202, when the cloud desktop address of the server side can not be connected, intercepting a domain name of a host of the server side from the connection parameters, and detecting whether the host can resolve the domain name of the host of the server side;
s203, if the domain name can be analyzed, the host at the server is used for analyzing the domain name of the host at the server, and remote connection with a cloud desktop at the server is established according to the domain name of the host at the server;
the server is configured to execute the following steps in fig. 7:
s701, receiving a connection request sent by a client, detecting whether a cloud desktop address can be connected, and returning connection parameters to the client;
s702, when the cloud desktop address can be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host;
and S703, if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a remote connection method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps in fig. 2 when executing the computer program:
s201, sending a connection request to a server, triggering the server to detect whether a cloud desktop address of the server is connectable, and receiving a connection parameter returned by the server;
s202, when the cloud desktop address of the server side can not be connected, intercepting a domain name of a host of the server side from the connection parameters, and detecting whether the host can resolve the domain name of the host of the server side;
s203, if the domain name can be analyzed, the host at the server is used for analyzing the domain name of the host at the server, and remote connection with a cloud desktop at the server is established according to the domain name of the host at the server;
or the processor when executing the computer program implements the following steps in fig. 7:
s701, receiving a connection request sent by a client, detecting whether a cloud desktop address can be connected, and returning connection parameters to the client;
s702, when the cloud desktop address can be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host;
and S703, if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when executed by a processor, implements the following steps in fig. 2:
s201, sending a connection request to a server, triggering the server to detect whether a cloud desktop address of the server is connectable, and receiving a connection parameter returned by the server;
s202, when the cloud desktop address of the server side can not be connected, intercepting a domain name of a host of the server side from the connection parameters, and detecting whether the host can resolve the domain name of the host of the server side;
s203, if the domain name can be analyzed, the host at the server is used for analyzing the domain name of the host at the server, and remote connection with a cloud desktop at the server is established according to the domain name of the host at the server;
or the computer program when executed by a processor implements the following steps in fig. 7:
s701, receiving a connection request sent by a client, detecting whether a cloud desktop address can be connected, and returning connection parameters to the client;
s702, when the cloud desktop address can be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host;
and S703, if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A remote connection method, the remote connection method comprising:
sending a connection request to a server, triggering the server to detect whether the cloud desktop address of the server can be connected or not, and receiving a connection parameter returned by the server; the connection parameters are determined by the server according to a detection result of whether the cloud desktop address is connectable or not;
when the cloud desktop address of the server side can not be connected, intercepting a host domain name of the server side from the connection parameters, and detecting whether the host where the server side is located can resolve the host domain name of the server side; whether the server cloud desktop address can be connected or not is judged, and whether the connection parameter comprises the server cloud desktop address or not is judged;
and if the domain name can be analyzed, analyzing the domain name of the server host by using the host where the domain name can be analyzed, and establishing remote connection with the cloud desktop of the server according to the domain name of the server host.
2. The remote connection method according to claim 1, wherein the step of sending a connection request to a server, triggering the server to detect whether a cloud desktop address of the server is reachable, and receiving a connection parameter returned by the server comprises:
generating a key pair, and sending a connection request to a server, wherein the connection request carries a public key in the key pair, and the connection request is used for triggering the server to encrypt connection parameters through the public key to obtain a ciphertext;
and receiving a ciphertext sent by the server, and analyzing the ciphertext through a private key to obtain the connection parameter.
3. The remote connection method according to claim 1 or 2, further comprising:
if the host can not analyze the domain name of the server-side host, adding the mapping of the client-side host file locally, and calling a connection instruction containing the domain name of the server-side host according to the mapping to remotely connect with the cloud desktop of the server.
4. The remote connection method according to claim 1, further comprising:
when the server cloud desktop address can be connected, adding login credentials in a local system according to the server cloud desktop address;
and calling a connection instruction containing the server cloud desktop address according to the login credential to remotely connect with the server cloud desktop.
5. A remote connection method, the remote connection method comprising:
receiving a connection request sent by a client, detecting whether the cloud desktop address can be connected or not, and returning connection parameters to the client; the connection parameters are determined according to the detection result of whether the cloud desktop address is connectable or not;
when the cloud desktop address can not be connected, triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host; the client acquires whether the cloud desktop address can be connected or not by judging whether the connection parameters comprise the cloud desktop address or not;
and if the host where the client is located can analyze the domain name of the server host, triggering the client to call a connection instruction containing the domain name of the server host to connect with the cloud desktop of the server.
6. A remote connection apparatus, the remote connection apparatus comprising:
the request module is used for sending a connection request to the server, triggering the server to detect whether the cloud desktop address of the server can be connected or not, and receiving a connection parameter returned by the server; the connection parameters are determined by the server according to a detection result of whether the cloud desktop address is connectable or not;
the intercepting module is used for intercepting the domain name of the host of the server from the connection parameters when the cloud desktop address of the server is not connectable, and detecting whether the host can resolve the domain name of the host of the server; whether the server cloud desktop address can be connected or not is judged, and whether the connection parameter comprises the server cloud desktop address or not is judged;
and the connection module is used for analyzing the domain name of the server side host by using the host where the connection module is located if the connection module can analyze the domain name, and establishing remote connection with the cloud desktop of the server side according to the domain name of the server side host.
7. A remote connection apparatus, the remote connection apparatus comprising:
the receiving module is used for receiving a connection request sent by the client, detecting whether the cloud desktop address can be connected or not, and returning connection parameters to the client; the connection parameters are determined according to the detection result of whether the cloud desktop address is connectable or not;
the first triggering module is used for triggering the client to intercept the domain name of the server host from the connection parameters and checking whether the client host can resolve the domain name of the server host when the cloud desktop address can not be connected; the client acquires whether the cloud desktop address can be connected or not by judging whether the connection parameters comprise the cloud desktop address or not;
and the second triggering module is used for triggering the client to call a connection instruction containing the domain name of the server host to be connected with the server cloud desktop if the host where the client is located can analyze the domain name of the server host.
8. A remote connection system, the remote connection system comprising:
a server and a client;
the client for performing the steps of the remote connection method of any one of claims 1 to 4;
the server is configured to perform the steps of the remote connection method of claim 5.
9. Computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the remote connection method according to any of claims 1 to 4 or 5 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the remote connection method according to any one of claims 1 to 4 or 5.
CN201810083258.0A 2018-01-29 2018-01-29 Remote connection method, device, computer equipment and storage medium Active CN108366103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810083258.0A CN108366103B (en) 2018-01-29 2018-01-29 Remote connection method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810083258.0A CN108366103B (en) 2018-01-29 2018-01-29 Remote connection method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108366103A CN108366103A (en) 2018-08-03
CN108366103B true CN108366103B (en) 2021-03-02

Family

ID=63007262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810083258.0A Active CN108366103B (en) 2018-01-29 2018-01-29 Remote connection method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108366103B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460278B (en) * 2018-11-05 2022-04-01 长沙远大住工智能科技有限公司 Cloud desktop building design software management method and device and computer equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103370111A (en) * 2012-10-31 2013-10-23 华为技术有限公司 Method and device for sending cloud server address
CN103634414A (en) * 2013-12-24 2014-03-12 北京本果信息技术有限公司 Management device, server, system and method for remote management
CN104038527A (en) * 2013-03-08 2014-09-10 腾讯科技(深圳)有限公司 Remote operation method and system
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN105323174A (en) * 2014-07-31 2016-02-10 中兴通讯股份有限公司 Method, equipment and system for remote desktop protocol gateway to carry out routing and switching
CN105357248A (en) * 2015-09-24 2016-02-24 福建天晴数码有限公司 Remote desktop network acceleration method and system
CN106534219A (en) * 2016-12-31 2017-03-22 ***通信集团江苏有限公司 Security authentication method and device for desktop cloud portal
CN106686038A (en) * 2015-11-10 2017-05-17 中兴通讯股份有限公司 Method and device for calling cloud desktop
CN107566433A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 A kind of cloud terminal logs in virtual desktop method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103370111A (en) * 2012-10-31 2013-10-23 华为技术有限公司 Method and device for sending cloud server address
CN104038527A (en) * 2013-03-08 2014-09-10 腾讯科技(深圳)有限公司 Remote operation method and system
CN103634414A (en) * 2013-12-24 2014-03-12 北京本果信息技术有限公司 Management device, server, system and method for remote management
CN105323174A (en) * 2014-07-31 2016-02-10 中兴通讯股份有限公司 Method, equipment and system for remote desktop protocol gateway to carry out routing and switching
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN105357248A (en) * 2015-09-24 2016-02-24 福建天晴数码有限公司 Remote desktop network acceleration method and system
CN106686038A (en) * 2015-11-10 2017-05-17 中兴通讯股份有限公司 Method and device for calling cloud desktop
CN107566433A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 A kind of cloud terminal logs in virtual desktop method and device
CN106534219A (en) * 2016-12-31 2017-03-22 ***通信集团江苏有限公司 Security authentication method and device for desktop cloud portal

Also Published As

Publication number Publication date
CN108366103A (en) 2018-08-03

Similar Documents

Publication Publication Date Title
CN109543463B (en) Data security access method, device, computer equipment and storage medium
CN111756729B (en) Network resource access method, device, computer equipment and storage medium
US11522959B2 (en) Systems and methods for remote management of appliances
US9497197B2 (en) Systems and methods for secure resource access and network communication
US20160212113A1 (en) Techniques for facilitating secure, credential-free user access to resources
EP3529970A1 (en) Edge protection for internal identity providers
US20100100927A1 (en) Systems and methods for protecting web based applications from cross site request forgery attacks
US9813421B2 (en) Systems and methods for secure resource access and network communication
WO2018010146A1 (en) Response method, apparatus and system in virtual network computing authentication, and proxy server
CN113079134B (en) Mobile terminal access method, mobile terminal access device, computer equipment and medium
CN109067739B (en) Communication data encryption method and device
CN111428225A (en) Data interaction method and device, computer equipment and storage medium
CN111818196B (en) Domain name resolution method and device, computer equipment and storage medium
US20160119342A1 (en) Systems and methods for secure resource access and network communication
JP2018197997A (en) System, information processing device, method, and program
WO2020019477A1 (en) Communication data encryption method and apparatus
CN114500054B (en) Service access method, service access device, electronic device, and storage medium
CN113626840A (en) Interface authentication method and device, computer equipment and storage medium
CN108471363B (en) Conference system registration method and device capable of supporting multiple communication protocols
CN108366103B (en) Remote connection method, device, computer equipment and storage medium
CN111259363B (en) Service access information processing method, system, device, equipment and storage medium
CN114448722B (en) Cross-browser login method and device, computer equipment and storage medium
CN112583602B (en) Information code data transmission method, device, system, computer device and medium
US20210192493A1 (en) Method and system for implementing a virtual smart card service
CN111786932A (en) Account login method and device, electronic equipment and computer storage medium

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