WO2015131524A1 - Remote access server method and web server - Google Patents

Remote access server method and web server Download PDF

Info

Publication number
WO2015131524A1
WO2015131524A1 PCT/CN2014/089341 CN2014089341W WO2015131524A1 WO 2015131524 A1 WO2015131524 A1 WO 2015131524A1 CN 2014089341 W CN2014089341 W CN 2014089341W WO 2015131524 A1 WO2015131524 A1 WO 2015131524A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
access server
server
access
request
Prior art date
Application number
PCT/CN2014/089341
Other languages
French (fr)
Chinese (zh)
Inventor
罗锦田
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131524A1 publication Critical patent/WO2015131524A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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

Definitions

  • the present invention relates to the technical field of remote access servers, and in particular, to a method and a web server for remotely accessing a server.
  • the terminal accesses the server in two ways, that is, the terminal accesses the internal network of the equipment room or performs remote login access.
  • the terminal can access the internal network of the computer room to log in and access the server using tools such as SecureCRT.
  • the remote method commonly used in the external network of the computer room is to use Microsoft remote desktop, telnet and other tools to connect to the internal network of the site for operation. The method is more troublesome.
  • the administrator considers the security of the access it usually has a firewall, and does not directly open the remote login, especially in foreign countries.
  • the terminal cannot provide remote access mode. In this case, Under the circumstances, if there is a problem in the on-site environment, it is more troublesome for the remote support personnel to operate.
  • the main object of the present invention is to solve the technical problem that the terminal remote access server is troublesome to operate.
  • a method of remotely accessing a server comprising the steps of:
  • the client After the client selects an access server in the list information, receiving a connection request sent by the client to establish a connection with the access server, and sending a setup session request to the access server according to the connection request;
  • the step of the web server receiving the login request sent by the client, and returning the list information of the access server to the client according to the login request includes:
  • the list information of the access server is returned to the client.
  • the client selects an access server in the list information
  • receiving a connection request sent by the client to establish a connection with the access server and accessing the access according to the connection request.
  • the steps for the server to send a session request include:
  • a setup session request is sent to the access server.
  • the method further includes:
  • the step of receiving an operation command sent by the client, and sending the operation command to the access server includes:
  • the operation command is sent to the access server.
  • a web server comprising a return module, a first sending module and a second sending module, wherein:
  • the returning module is configured to: receive a login request sent by the client, and return, to the client, list information of the access server according to the login request;
  • the first sending module is configured to: after the client selects an access server in the list information, receive a connection request sent by the client to establish a connection with the access server, according to the connection request
  • the access server sends a setup session request
  • the second sending module is configured to: receive the response message that the access server returns a successful setup according to the establishment session request, and send the response message to the client, so that the client accesses the access server .
  • the return module includes a first checking unit and a return unit, wherein:
  • the first checking unit is configured to: receive a login request sent by the client, and perform a login permission check according to the login request;
  • the returning unit is configured to: return the list information of the access server to the client after the login permission check is passed.
  • the first sending module includes a second checking unit and a first sending unit, where:
  • the second checking unit is configured to: receive a connection request sent by the client to establish a connection with the access server, and perform a connection permission check according to the connection request;
  • the first sending unit is configured to: after the connection authority check passes, send the establishment session request to the access server.
  • the web server further includes a third sending module and a receiving module, where:
  • the third sending module is configured to: receive an operation command sent by the client, and send the operation command to the access server;
  • the receiving module is configured to: receive, after the access server executes the operation command, return Responding to the message and returning the response message to the client.
  • the third sending module includes a third checking unit and a second sending unit, where:
  • the third checking unit is configured to: receive an operation command sent by the client, and perform a command execution permission check according to the operation command;
  • the second sending unit is configured to: after the command execution permission check passes, send the operation command to the access server.
  • a computer program comprising program instructions that, when executed by a web server, cause the web server to perform the method of remotely accessing the server as described above.
  • the method for remotely accessing a server and the web server of the technical solution of the present invention log in to the web server on the client of the terminal, and the web server returns the list information of the plurality of accessible servers to the client, and the user can directly select the list in the list.
  • This embodiment adopts a common web mode, and does not need to use tools such as remote desktop and telnet, and the access operation is relatively simple, which can greatly improve the convenience and flexibility of the client accessing the server.
  • FIG. 1 is a schematic flowchart of a method for remotely accessing a server according to a first embodiment of the present invention
  • FIG. 2 is a schematic diagram of a refinement process of step S101 in FIG. 1;
  • step S102 in FIG. 1 is a schematic flowchart of the refinement of step S102 in FIG. 1;
  • FIG. 4 is a schematic flowchart of a method for remotely accessing a server according to a second embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a functional module of a web server according to a first embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a refinement function module of the return module in FIG. 5;
  • FIG. 7 is a schematic diagram of a refinement function module of the first sending module in FIG. 5;
  • FIG. 8 is a schematic diagram of a functional module of a web server according to a second embodiment of the present invention.
  • An embodiment of the present invention provides a method for remotely accessing a server.
  • the method for remotely accessing a server includes:
  • Step S101 The web server receives the login request sent by the client, and returns the list information of the access server to the client according to the login request.
  • a web server is preset, and the web server obtains information of all servers in the on-site environment of the telecommunication service, and classifies the information of the servers, that is, the information of the server that each client can access is classified into one type. Further processing the information of each type of server into list information for storage.
  • the user when one of the remote environments of the terminal remotely accesses the telecommunication service accesses the server, the user inputs the URL address of the web server in the open browser of the terminal, and logs in by inputting the user name and password in the client. If the client has the right to log in to the web server, after successfully logging in to the web server, the web server returns the list information of the accessible server to the client.
  • Step S102 after the client selects an access server in the list information, receiving a connection request sent by the client to establish a connection with the access server, and sending an establishment to the access server according to the connection request.
  • Session request
  • the user browses the returned list information, selects an access server in the list information, and sends a connection request to the web server through the client to establish a connection with the selected access server, if the client has the selected access.
  • the server establishes the connection permission, then the web service
  • the server initiates a session connection with the access server according to the connection request, and sends a setup session request to the access server.
  • a session is a persistent network protocol.
  • an association is created between a web server and an access server, thereby playing the role of exchanging data packets, and the content of the session is saved by the web server.
  • Step S103 Receive a response message that the access server returns a successful setup according to the establishment session request, and send the response message to the client, so that the client accesses the access server.
  • the access server after the web server sends a setup session request to the access server, the access server establishes a session with the web server according to the session request, and returns a response message of successful session establishment to the web server, and the web server receives the response message, The response message is returned to the client and displayed on the browser to inform the user that the session was established successfully.
  • This embodiment adopts a common web mode, so that the user can use the browser on the public network, such as an IE browser, to perform access operations on multiple servers in the live environment of the telecommunication service, without requiring the user to use the remote desktop.
  • Remote login such as telnet, remote access method is relatively simple.
  • the embodiment logs in to the web server on the client of the terminal, and the web server returns the list information of the plurality of accessible servers to the client, and the user can directly select an access server in the list, and The web server sends a connection request to establish a connection with the access server, and then the web server establishes a session with the access server, and the client can access one of the plurality of access servers in the live environment of the telecommunication service, and the embodiment adopts a universal web.
  • the method does not need to use tools such as remote desktop and telnet, and the access operation is relatively simple, which can greatly improve the convenience and flexibility of the client accessing the server; in addition, when it is necessary to verify the execution effect of a certain command of the terminal, for example, verifying the AIX environment.
  • the execution effect of a certain command but there is no AIX server resource at this time, but by the method of this embodiment, the login to the web server can be very convenient to implement the verification of the command.
  • the foregoing step S101 includes:
  • Step S1011 Receive a login request sent by the client, and perform a login permission check according to the login request.
  • Step S1012 After the login permission check is passed, return the list information of the access server to the client.
  • the web server receives the login request of the client, checks the login information of the client (including the user name and the identification information of the terminal, etc.), and determines whether the user is a registered user and whether the user has the login permission. If the user is a registered user and has login permission, the login permission check passes, the login web server succeeds, and then the web server returns the list information of the accessible server to the client.
  • the login permission of the client to log in to the web server is restricted. Only the pre-registered user and the user with the login authority can log in to the web server. Otherwise, the login fails, thereby improving the security of the access.
  • the foregoing step S102 includes:
  • Step S1021 Receive a connection request sent by the client to establish a connection with the access server, and perform a connection permission check according to the connection request.
  • Step S1022 After the connection permission check is passed, send a setup session request to the access server.
  • the web server receives a connection request between the client and the access server, performs a connection permission check on the connection request, and determines whether the user has the right to connect to the selected access server, if the user has the access server selected to connect with the selected access server. Permission, the connection permission check is passed, at this time, the web server directly sends a setup session request to the access server.
  • connection permission of the client to access the server is restricted, and only the user having the permission to connect to the selected access server can connect with the access server; otherwise, the subsequent steps cannot be performed, thereby improving the security of the access.
  • Embodiments also include:
  • Step S104 Receive an operation command sent by the client, and send the operation command to the access server.
  • Step S105 Receive a response message returned by the access server after executing the operation command, and return the response message to the client.
  • the client can remotely access the access server. Specifically, the client sends an operation command to the web server, and if the user has the command execution permission, the web server sends the operation command to the access server.
  • the access server receives the operation command and executes, and when the execution is completed, sends a response message after executing the operation command to the web server, and the web server receives the response message, and then returns the response message to the client.
  • the web server may send an end session request, the web server sends the end session request to the access server, the access server responds and ends the session, and sends an end response message to the web server, and the web server receives The end response message is returned to the client, and the client ends the remote access.
  • the step S104 further includes: receiving an operation command sent by the client, performing a command execution permission check according to the operation command; and executing the command when the command is executed. After the permission check is passed, the operation command is sent to the access server.
  • This embodiment is similar to the embodiment in which the client sends a login request and a connection request to the web server in the foregoing embodiment, and the permission check is required. The difference is that the embodiment performs the command execution permission check on the operation command.
  • the present invention also provides a web server. As shown in FIG. 5, in an embodiment, the web server includes:
  • the returning module 101 is configured to: the web server receives the login request sent by the client, and returns the list information of the access server to the client according to the login request;
  • a web server is preset, and the web server obtains the current telecommunication service.
  • the user when one of the remote environments of the terminal remotely accesses the telecommunication service accesses the server, the user inputs the URL address of the web server in the open browser of the terminal, and logs in by inputting the user name and password in the client. If the client has the right to log in to the web server, after successfully logging in to the web server, the web server returns the list information of the accessible server to the client.
  • the first sending module 102 is configured to: after the client selects an access server in the list information, receive a connection request sent by the client to establish a connection with the access server, according to the connection request The access server sends a setup session request;
  • the user browses the returned list information, selects an access server in the list information, and sends a connection request to the web server through the client to establish a connection with the selected access server, if the client has the selected access.
  • the server establishes a connection permission, and the web server initiates a session connection with the access server according to the connection request, and sends a setup session request to the access server.
  • a session is a persistent network protocol.
  • an association is created between a web server and an access server, thereby playing the role of exchanging data packets, and the content of the session is saved by the web server.
  • the second sending module 103 is configured to: receive the response message that the access server returns a successful setup according to the establishment session request, and send the response message to the client, so that the client accesses the access server.
  • the access server after the web server sends a setup session request to the access server, the access server establishes a session with the web server according to the session request, and returns a response message of successful session establishment to the web server, and the web server receives the response message, The response message is returned to the client and displayed on the browser to inform the user that the session was established successfully.
  • the embodiment adopts a common web mode, so that the user can use the browser on the public network, such as an IE browser, to perform access operations on multiple servers in the live environment of the telecommunication service. You don't need users to log in remotely using tools such as remote desktop or telnet.
  • the method of remote access is relatively simple.
  • the return module 101 includes:
  • the first checking unit is configured to: receive a login request sent by the client, and perform a login permission check according to the login request;
  • the return unit is configured to: return the list information of the access server to the client after the login permission check is passed.
  • the web server receives the login request of the client, checks the login information of the client (including the user name and the identification information of the terminal, etc.), and determines whether the user is a registered user and whether the user has the login permission. If the user is a registered user and has login permission, the login permission check passes, the login web server succeeds, and then the web server returns the list information of the accessible server to the client.
  • the login permission of the client to log in to the web server is restricted. Only the pre-registered user and the user with the login authority can log in to the web server. Otherwise, the login fails, thereby improving the security of the access.
  • the first sending module 102 includes:
  • the second checking unit is configured to: receive a connection request sent by the client to establish a connection with the access server, and perform a connection permission check according to the connection request;
  • the first sending unit is configured to: after the connection permission check is passed, send a setup session request to the access server.
  • the web server receives a connection request between the client and the access server, performs a connection permission check on the connection request, and determines whether the user has the right to connect to the selected access server, if the user has the access server selected to connect with the selected access server. Permission, the connection permission check is passed, at this time, the web server directly sends a setup session request to the access server.
  • connection permission of the client connection access server is restricted, and only Users who connect to the selected access server can connect to the access server. Otherwise, subsequent steps cannot be performed to improve access security.
  • the web server further includes:
  • the third sending module 104 is configured to: receive an operation command sent by the client, and send the operation command to the access server;
  • the receiving module 105 is configured to: receive a response message returned by the access server after executing the operation command, and return the response message to the client.
  • the client can remotely access the access server. Specifically, the client sends an operation command to the web server, and if the user has the command execution permission, the web server sends the operation command to the access server.
  • the access server receives the operation command and executes, and when the execution is completed, sends a response message after executing the operation command to the web server, and the web server receives the response message, and then returns the response message to the client.
  • the web server may send an end session request, the web server sends the end session request to the access server, the access server responds and ends the session, and sends an end response message to the web server, and the web server receives The end response message is returned to the client, and the client ends the remote access.
  • the third sending module 104 includes: a third checking unit, configured to: receive an operation command sent by the client, according to the The operation command performs a command execution permission check; the second sending unit is configured to: after the command execution permission check passes, send the operation command to the access server.
  • This embodiment is similar to the embodiment in which the client sends a login request and a connection request to the web server in the foregoing embodiment, and the permission check is required.
  • the third check unit of the embodiment is to execute the command for the operation command. Execute permission check.
  • the method for remotely accessing a server and the web server of the technical solution of the present invention log in to the web server on the client of the terminal, and the web server returns the list information of the plurality of accessible servers to the client, and the user can directly select the list in the list.
  • This embodiment adopts a common web mode, and does not need to use tools such as remote desktop and telnet, and the access operation is relatively simple, which can greatly improve the convenience and flexibility of the client accessing the server. Therefore, the present invention has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A remote access server method and a web server, and a computer program and corresponding carrier, the remote access server method comprising the following steps: a web server receives a log-in request sent from a client terminal, and on the basis of the log-in request, returns an access server list message to the client terminal; after the client terminal selects an access server from the list message, a connection request sent by the client terminal to connect with the access server is received, and on the basis of the connection request, a session establishment request is sent to the access server; an establishment success response message returned by the access server on the basis of the session establishment request is received, and the response message is sent to the client terminal, such that the client terminal accesses the access server. The present technical solution does not require the use of tools such as a remote desktop or telnet; the access operation is simple; and the convenience and flexibility of access to the server by the client terminal can be greatly improved.

Description

远程访问服务器的方法及web服务器Remote access server method and web server 技术领域Technical field
本发明涉及远程访问服务器的技术领域,尤其涉及一种远程访问服务器的方法及web服务器。The present invention relates to the technical field of remote access servers, and in particular, to a method and a web server for remotely accessing a server.
背景技术Background technique
在电信业务的现场环境中,通常部署有很多服务器设备,终端对于服务器的访问有两种方式,即终端到机房内部网络进行访问或者进行远程登录访问。终端到机房内部网络进行访问可以使用SecureCRT等工具登陆并访问服务器;而在机房外部网络常用的远程方法为使用微软的远程桌面、telnet等工具连接到局点内部网络进行操作,这种远程访问的方式比较麻烦;另外,由于局方出于对访问安全的考虑,通常都设有防火墙,且不会直接开放远程登录,特别是国外局点,通常无法给终端提供远程访问方式,在这种情况下,如果现场环境出现问题,远程支持人员要进行操作时比较麻烦。In the on-site environment of a telecom service, many server devices are usually deployed. The terminal accesses the server in two ways, that is, the terminal accesses the internal network of the equipment room or performs remote login access. The terminal can access the internal network of the computer room to log in and access the server using tools such as SecureCRT. The remote method commonly used in the external network of the computer room is to use Microsoft remote desktop, telnet and other tools to connect to the internal network of the site for operation. The method is more troublesome. In addition, because the administrator considers the security of the access, it usually has a firewall, and does not directly open the remote login, especially in foreign countries. Generally, the terminal cannot provide remote access mode. In this case, Under the circumstances, if there is a problem in the on-site environment, it is more troublesome for the remote support personnel to operate.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于解决终端远程访问服务器操作较麻烦的技术问题。The main object of the present invention is to solve the technical problem that the terminal remote access server is troublesome to operate.
为解决上述技术问题,采用如下技术方案:In order to solve the above technical problems, the following technical solutions are adopted:
一种远程访问服务器的方法,该方法包括以下步骤:A method of remotely accessing a server, the method comprising the steps of:
web服务器接收客户端发送的登录请求,根据所述登录请求向所述客户端返回访问服务器的列表信息;Receiving, by the web server, a login request sent by the client, and returning, to the client, the list information of the access server according to the login request;
在所述客户端选中所述列表信息中的一访问服务器后,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求向所述访问服务器发送建立会话请求; After the client selects an access server in the list information, receiving a connection request sent by the client to establish a connection with the access server, and sending a setup session request to the access server according to the connection request;
接收所述访问服务器根据所述建立会话请求返回的建立成功的响应消息,向所述客户端发送所述响应消息,以便所述客户端访问所述访问服务器。Receiving, by the access server, a response message that is successfully established according to the establishment session request, and sending the response message to the client, so that the client accesses the access server.
可选地,所述web服务器接收客户端发送的登录请求,根据所述登录请求向所述客户端返回访问服务器的列表信息的步骤包括:Optionally, the step of the web server receiving the login request sent by the client, and returning the list information of the access server to the client according to the login request includes:
接收所述客户端发送的登录请求,根据所述登录请求进行登录权限检查;Receiving a login request sent by the client, and performing a login permission check according to the login request;
当登录权限检查通过后,向所述客户端返回访问服务器的列表信息。After the login permission check is passed, the list information of the access server is returned to the client.
可选地,所述在所述客户端选中所述列表信息中的一访问服务器后,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求向所述访问服务器发送建立会话请求的步骤包括:Optionally, after the client selects an access server in the list information, receiving a connection request sent by the client to establish a connection with the access server, and accessing the access according to the connection request. The steps for the server to send a session request include:
接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求进行连接权限检查;Receiving a connection request sent by the client to establish a connection with the access server, and performing a connection permission check according to the connection request;
当连接权限检查通过后,向所述访问服务器发送建立会话请求。After the connection permission check is passed, a setup session request is sent to the access server.
可选地,该方法还包括:Optionally, the method further includes:
接收所述客户端发送的操作命令,向所述访问服务器发送所述操作命令;Receiving an operation command sent by the client, and sending the operation command to the access server;
接收所述访问服务器执行所述操作命令后返回的响应消息并返回该响应消息至所述客户端。Receiving a response message returned by the access server after executing the operation command and returning the response message to the client.
可选地,所述接收所述客户端发送的操作命令,向所述访问服务器发送所述操作命令的步骤包括:Optionally, the step of receiving an operation command sent by the client, and sending the operation command to the access server includes:
接收所述客户端发送的操作命令,根据所述操作命令进行命令执行权限检查;Receiving an operation command sent by the client, and performing a command execution permission check according to the operation command;
当命令执行权限检查通过后,向所述访问服务器发送所述操作命令。 After the command execution permission check is passed, the operation command is sent to the access server.
一种web服务器,所述web服务器包括返回模块、第一发送模块和第二发送模块,其中:A web server, the web server comprising a return module, a first sending module and a second sending module, wherein:
所述返回模块设置成:接收客户端发送的登录请求,根据所述登录请求向所述客户端返回访问服务器的列表信息;The returning module is configured to: receive a login request sent by the client, and return, to the client, list information of the access server according to the login request;
所述第一发送模块设置成:在所述客户端选中所述列表信息中的一访问服务器后,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求向所述访问服务器发送建立会话请求;The first sending module is configured to: after the client selects an access server in the list information, receive a connection request sent by the client to establish a connection with the access server, according to the connection request The access server sends a setup session request;
所述第二发送模块设置成:接收所述访问服务器根据所述建立会话请求返回的建立成功的响应消息,向所述客户端发送所述响应消息,以便使得所述客户端访问所述访问服务器。The second sending module is configured to: receive the response message that the access server returns a successful setup according to the establishment session request, and send the response message to the client, so that the client accesses the access server .
可选地,所述返回模块包括第一检查单元和返回单元,其中:Optionally, the return module includes a first checking unit and a return unit, wherein:
所述第一检查单元设置成:接收所述客户端发送的登录请求,根据所述登录请求进行登录权限检查;The first checking unit is configured to: receive a login request sent by the client, and perform a login permission check according to the login request;
所述返回单元设置成:当登录权限检查通过后,向所述客户端返回访问服务器的列表信息。The returning unit is configured to: return the list information of the access server to the client after the login permission check is passed.
可选地,所述第一发送模块包括第二检查单元和第一发送单元,其中:Optionally, the first sending module includes a second checking unit and a first sending unit, where:
所述第二检查单元设置成:接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求进行连接权限检查;The second checking unit is configured to: receive a connection request sent by the client to establish a connection with the access server, and perform a connection permission check according to the connection request;
所述第一发送单元设置成:当连接权限检查通过后,向所述访问服务器发送所述建立会话请求。The first sending unit is configured to: after the connection authority check passes, send the establishment session request to the access server.
可选地,该web服务器还包括第三发送模块和接收模块,其中:Optionally, the web server further includes a third sending module and a receiving module, where:
所述第三发送模块设置成:接收所述客户端发送的操作命令,向所述访问服务器发送所述操作命令;The third sending module is configured to: receive an operation command sent by the client, and send the operation command to the access server;
所述接收模块设置成:接收所述访问服务器执行所述操作命令后返回的 响应消息并返回该响应消息至所述客户端。The receiving module is configured to: receive, after the access server executes the operation command, return Responding to the message and returning the response message to the client.
可选地,所述第三发送模块包括第三检查单元和第二发送单元,其中:Optionally, the third sending module includes a third checking unit and a second sending unit, where:
所述第三检查单元设置成:接收所述客户端发送的操作命令,根据所述操作命令进行命令执行权限检查;The third checking unit is configured to: receive an operation command sent by the client, and perform a command execution permission check according to the operation command;
所述第二发送单元设置成:当命令执行权限检查通过后,向所述访问服务器发送所述操作命令。The second sending unit is configured to: after the command execution permission check passes, send the operation command to the access server.
一种计算机程序,包括程序指令,当该程序指令被web服务器执行时,使得该web服务器可执行上述的远程访问服务器的方法。A computer program comprising program instructions that, when executed by a web server, cause the web server to perform the method of remotely accessing the server as described above.
一种载有上述计算机程序的载体。A carrier carrying the above computer program.
本发明技术方案的一种远程访问服务器的方法及web服务器,在终端的客户端上登录web服务器,由web服务器向客户端返回多个可访问的服务器的列表信息,用户可直接选择列表中的某一访问服务器,并向web服务器发送与该访问服务器建立连接的连接请求,然后,web服务器与访问服务器建立会话,至此客户端可访问电信业务的现场环境中的多个访问服务器中的一个,本实施例采用通用的web方式,不需要使用远程桌面、telnet等工具,访问操作较简单,可以极大提高客户端访问服务器的方便性、灵活性。The method for remotely accessing a server and the web server of the technical solution of the present invention log in to the web server on the client of the terminal, and the web server returns the list information of the plurality of accessible servers to the client, and the user can directly select the list in the list. Accessing the server and sending a connection request to the web server to establish a connection with the access server, and then the web server establishes a session with the access server, and the client can access one of the plurality of access servers in the live environment of the telecommunication service, This embodiment adopts a common web mode, and does not need to use tools such as remote desktop and telnet, and the access operation is relatively simple, which can greatly improve the convenience and flexibility of the client accessing the server.
附图概述BRIEF abstract
图1为本发明第一实施例的远程访问服务器的方法流程示意图;1 is a schematic flowchart of a method for remotely accessing a server according to a first embodiment of the present invention;
图2为图1中步骤S101的细化流程示意图;2 is a schematic diagram of a refinement process of step S101 in FIG. 1;
图3为图1中步骤S102的细化流程示意图;3 is a schematic flowchart of the refinement of step S102 in FIG. 1;
图4为本发明第二实施例的远程访问服务器的方法流程示意图;4 is a schematic flowchart of a method for remotely accessing a server according to a second embodiment of the present invention;
图5为本发明第一实施例的web服务器功能模块示意图; FIG. 5 is a schematic diagram of a functional module of a web server according to a first embodiment of the present invention; FIG.
图6为图5中返回模块的细化功能模块示意图;6 is a schematic diagram of a refinement function module of the return module in FIG. 5;
图7为图5中第一发送模块的细化功能模块示意图;7 is a schematic diagram of a refinement function module of the first sending module in FIG. 5;
图8为本发明第二实施例的web服务器功能模块示意图。FIG. 8 is a schematic diagram of a functional module of a web server according to a second embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
本发明的较佳实施方式Preferred embodiment of the invention
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供一种远程访问服务器的方法,参照图1,在一实施例中,该远程访问服务器的方法包括:An embodiment of the present invention provides a method for remotely accessing a server. Referring to FIG. 1, in an embodiment, the method for remotely accessing a server includes:
步骤S101,web服务器接收客户端发送的登录请求,根据所述登录请求向所述客户端返回访问服务器的列表信息;Step S101: The web server receives the login request sent by the client, and returns the list information of the access server to the client according to the login request.
本实施例中,预先设置一个web服务器,web服务器获取电信业务的现场环境中所有服务器的信息,并对这些服务器的信息进行分类,即每一个客户端可以访问的服务器的信息归置为一类,进一步将每一类服务器的信息处理为列表信息,进行存储。In this embodiment, a web server is preset, and the web server obtains information of all servers in the on-site environment of the telecommunication service, and classifies the information of the servers, that is, the information of the server that each client can access is classified into one type. Further processing the information of each type of server into list information for storage.
本实施例中,在终端远程访问电信业务的现场环境中的其中一个访问服务器时,用户在终端的打开的浏览器输入web服务端的URL地址,并通过在客户端中输入用户名和密码进行登录。若该客户端具有登录该web服务器的权限,则在成功登录web服务器后,web服务器向客户端返回可访问的服务器的列表信息。In this embodiment, when one of the remote environments of the terminal remotely accesses the telecommunication service accesses the server, the user inputs the URL address of the web server in the open browser of the terminal, and logs in by inputting the user name and password in the client. If the client has the right to log in to the web server, after successfully logging in to the web server, the web server returns the list information of the accessible server to the client.
步骤S102,在所述客户端选中所述列表信息中的一访问服务器后,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求向所述访问服务器发送建立会话请求;Step S102, after the client selects an access server in the list information, receiving a connection request sent by the client to establish a connection with the access server, and sending an establishment to the access server according to the connection request. Session request
本实施例中,用户浏览返回的列表信息,选择列表信息中的一个访问服务器,通过客户端发送与该选中的访问服务器建立连接的连接请求至web服务器,若该客户端具有与该选中的访问服务器建立连接的权限,则该web服 务器根据连接请求启动与访问服务器的会话连接,向访问服务器发送建立会话请求。In this embodiment, the user browses the returned list information, selects an access server in the list information, and sends a connection request to the web server through the client to establish a connection with the selected access server, if the client has the selected access. The server establishes the connection permission, then the web service The server initiates a session connection with the access server according to the connection request, and sends a setup session request to the access server.
会话(session)是一种持久网络协议,本实施例通过在web服务器与访问服务器之间创建关联,从而起到交换数据包的作用,并由web服务器保存会话的内容。A session is a persistent network protocol. In this embodiment, an association is created between a web server and an access server, thereby playing the role of exchanging data packets, and the content of the session is saved by the web server.
步骤S103,接收所述访问服务器根据所述建立会话请求返回的建立成功的响应消息,向所述客户端发送所述响应消息,以便所述客户端访问所述访问服务器。Step S103: Receive a response message that the access server returns a successful setup according to the establishment session request, and send the response message to the client, so that the client accesses the access server.
本实施例中,web服务器向访问服务器发送建立会话请求后,访问服务器根据该会话请求与web服务器建立会话,向web服务器返回会话建立成功的响应消息,web服务器在接收到该响应消息后,同样向客户端返回该响应消息并在浏览器上显示,以告知用户会话建立成功。In this embodiment, after the web server sends a setup session request to the access server, the access server establishes a session with the web server according to the session request, and returns a response message of successful session establishment to the web server, and the web server receives the response message, The response message is returned to the client and displayed on the browser to inform the user that the session was established successfully.
本实施例采用通用的web方式,使得用户可在公网上仅仅使用浏览器,如IE浏览器等,即可对电信业务的现场环境中的多个服务器进行访问操作,不需要用户用远程桌面、telnet等工具远程登录,远程访问的方法较为简单。This embodiment adopts a common web mode, so that the user can use the browser on the public network, such as an IE browser, to perform access operations on multiple servers in the live environment of the telecommunication service, without requiring the user to use the remote desktop. Remote login such as telnet, remote access method is relatively simple.
与相关技术相比,本实施例在终端的客户端上登录web服务器,由web服务器向客户端返回多个可访问的服务器的列表信息,用户可直接选择列表中的某一访问服务器,并向web服务器发送与该访问服务器建立连接的连接请求,然后,web服务器与访问服务器建立会话,至此客户端可访问电信业务的现场环境中的多个访问服务器中的一个,本实施例采用通用的web方式,不需要使用远程桌面、telnet等工具,访问操作较简单,可以极大提高客户端访问服务器的方便性、灵活性;另外,当需要验证终端某个命令的执行效果时,比如验证AIX环境下的某个命令的执行效果,但此时并没有AIX服务器资源,但通过本实施例的方法,登录web服务器即可非常方便的实现命令的验证。Compared with the related art, the embodiment logs in to the web server on the client of the terminal, and the web server returns the list information of the plurality of accessible servers to the client, and the user can directly select an access server in the list, and The web server sends a connection request to establish a connection with the access server, and then the web server establishes a session with the access server, and the client can access one of the plurality of access servers in the live environment of the telecommunication service, and the embodiment adopts a universal web. The method does not need to use tools such as remote desktop and telnet, and the access operation is relatively simple, which can greatly improve the convenience and flexibility of the client accessing the server; in addition, when it is necessary to verify the execution effect of a certain command of the terminal, for example, verifying the AIX environment. The execution effect of a certain command, but there is no AIX server resource at this time, but by the method of this embodiment, the login to the web server can be very convenient to implement the verification of the command.
在一可选的实施例中,如图2所示,在上述图1的实施例的基础上,上述步骤S101包括: In an optional embodiment, as shown in FIG. 2, based on the foregoing embodiment of FIG. 1, the foregoing step S101 includes:
步骤S1011,接收所述客户端发送的登录请求,根据所述登录请求进行登录权限检查;Step S1011: Receive a login request sent by the client, and perform a login permission check according to the login request.
步骤S1012,当登录权限检查通过后,向所述客户端返回访问服务器的列表信息。Step S1012: After the login permission check is passed, return the list information of the access server to the client.
本实施例中,web服务器接收客户端的登录请求,对客户端的登录信息(包括用户名及终端的标识信息等等)进行登录权限检查,判断该用户是否是已注册用户并且该用户是否具有登录权限,如果该用户为已注册用户且具有登录权限,则登录权限检查通过,登录web服务器成功,然后web服务器向客户端返回可访问的服务器的列表信息。In this embodiment, the web server receives the login request of the client, checks the login information of the client (including the user name and the identification information of the terminal, etc.), and determines whether the user is a registered user and whether the user has the login permission. If the user is a registered user and has login permission, the login permission check passes, the login web server succeeds, and then the web server returns the list information of the accessible server to the client.
本实施例中,对客户端登录web服务器的登录权限进行限制,只有预先注册过的用户且具有登录权限的用户方可登录web服务器,否则,登录失败,以此提高访问的安全性。In this embodiment, the login permission of the client to log in to the web server is restricted. Only the pre-registered user and the user with the login authority can log in to the web server. Otherwise, the login fails, thereby improving the security of the access.
在一可选的实施例中,如图3所示,在上述图1的实施例的基础上,上述步骤S102包括:In an optional embodiment, as shown in FIG. 3, based on the foregoing embodiment of FIG. 1, the foregoing step S102 includes:
步骤S1021,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求进行连接权限检查;Step S1021: Receive a connection request sent by the client to establish a connection with the access server, and perform a connection permission check according to the connection request.
步骤S1022,当连接权限检查通过后,向所述访问服务器发送建立会话请求。Step S1022: After the connection permission check is passed, send a setup session request to the access server.
本实施例中,web服务器接收客户端与访问服务器建立连接的连接请求,对连接请求进行连接权限检查,判断该用户是否具有连接选中的访问服务器的权限,如果该用户具有连接选中的访问服务器的权限,则连接权限检查通过,此时,由web服务器直接向访问服务器发送建立会话请求。In this embodiment, the web server receives a connection request between the client and the access server, performs a connection permission check on the connection request, and determines whether the user has the right to connect to the selected access server, if the user has the access server selected to connect with the selected access server. Permission, the connection permission check is passed, at this time, the web server directly sends a setup session request to the access server.
本实施例中,对客户端连接访问服务器的连接权限进行限制,只有具有连接选中的访问服务器的权限的用户方可与访问服务器进行连接,否则,无法执行后续步骤,以此提高访问的安全性。In this embodiment, the connection permission of the client to access the server is restricted, and only the user having the permission to connect to the selected access server can connect with the access server; otherwise, the subsequent steps cannot be performed, thereby improving the security of the access. .
在一可选的实施例中,如图4所示,在上述图1的实施例的基础上,本 实施例还包括:In an alternative embodiment, as shown in FIG. 4, based on the embodiment of FIG. 1 above, Embodiments also include:
步骤S104,接收所述客户端发送的操作命令,向所述访问服务器发送所述操作命令;Step S104: Receive an operation command sent by the client, and send the operation command to the access server.
步骤S105,接收所述访问服务器执行所述操作命令后返回的响应消息并返回该响应消息至所述客户端。Step S105: Receive a response message returned by the access server after executing the operation command, and return the response message to the client.
本实施例中,web服务器与访问服务器建立会话后,客户端可以远程访问该访问服务器。具体为:客户端向web服务器发送操作命令,若用户具有命令执行权限,则web服务器向访问服务器发送该操作命令。In this embodiment, after the web server establishes a session with the access server, the client can remotely access the access server. Specifically, the client sends an operation command to the web server, and if the user has the command execution permission, the web server sends the operation command to the access server.
访问服务器接收该操作命令并执行,当执行完成后,向web服务器发送执行操作命令后的响应消息,web服务器接收该响应消息,然后再将该响应消息返回给客户端。The access server receives the operation command and executes, and when the execution is completed, sends a response message after executing the operation command to the web server, and the web server receives the response message, and then returns the response message to the client.
另外,当客户端要结束远程访问时,可向web服务器发送结束会话请求,web服务器将该结束会话请求发送给访问服务器,访问服务器响应并结束会话,向web服务器发送结束响应消息,web服务器接收该结束响应消息并返回给客户端,至此客户端结束远程访问。In addition, when the client wants to end the remote access, the web server may send an end session request, the web server sends the end session request to the access server, the access server responds and ends the session, and sends an end response message to the web server, and the web server receives The end response message is returned to the client, and the client ends the remote access.
在一可选的实施例中,在上述图4的实施例的基础上,上述步骤S104还包括:接收所述客户端发送的操作命令,根据所述操作命令进行命令执行权限检查;当命令执行权限检查通过后,向所述访问服务器发送所述操作命令。In an optional embodiment, based on the foregoing embodiment of FIG. 4, the step S104 further includes: receiving an operation command sent by the client, performing a command execution permission check according to the operation command; and executing the command when the command is executed. After the permission check is passed, the operation command is sent to the access server.
本实施例与上述实施例中客户端向web服务器发送登录请求及连接请求的实施例类似,均需要进行权限的检查,所不同的是,本实施例是对操作命令进行命令执行权限检查。This embodiment is similar to the embodiment in which the client sends a login request and a connection request to the web server in the foregoing embodiment, and the permission check is required. The difference is that the embodiment performs the command execution permission check on the operation command.
本发明还提供一种web服务器,如图5所示,在一实施例中,所述web服务器包括:The present invention also provides a web server. As shown in FIG. 5, in an embodiment, the web server includes:
返回模块101设置成:web服务器接收客户端发送的登录请求,根据所述登录请求向所述客户端返回访问服务器的列表信息;The returning module 101 is configured to: the web server receives the login request sent by the client, and returns the list information of the access server to the client according to the login request;
本实施例中,预先设置一个web服务器,web服务器获取电信业务的现 场环境中所有服务器的信息,并对这些服务器的信息进行分类,即每一个客户端可以访问的服务器的信息归置为一类,进一步将每一类服务器的信息处理为列表信息,进行存储。In this embodiment, a web server is preset, and the web server obtains the current telecommunication service. Information about all the servers in the farm environment, and classify the information of these servers. That is, the information of the servers that each client can access is classified into one class, and the information of each type of server is further processed into list information for storage.
本实施例中,在终端远程访问电信业务的现场环境中的其中一个访问服务器时,用户在终端的打开的浏览器输入web服务端的URL地址,并通过在客户端中输入用户名和密码进行登录。若该客户端具有登录该web服务器的权限,则在成功登录web服务器后,web服务器向客户端返回可访问的服务器的列表信息。In this embodiment, when one of the remote environments of the terminal remotely accesses the telecommunication service accesses the server, the user inputs the URL address of the web server in the open browser of the terminal, and logs in by inputting the user name and password in the client. If the client has the right to log in to the web server, after successfully logging in to the web server, the web server returns the list information of the accessible server to the client.
第一发送模块102,设置成:在所述客户端选中所述列表信息中的一访问服务器后,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求向所述访问服务器发送建立会话请求;The first sending module 102 is configured to: after the client selects an access server in the list information, receive a connection request sent by the client to establish a connection with the access server, according to the connection request The access server sends a setup session request;
本实施例中,用户浏览返回的列表信息,选择列表信息中的一个访问服务器,通过客户端发送与该选中的访问服务器建立连接的连接请求至web服务器,若该客户端具有与该选中的访问服务器建立连接的权限,则该web服务器根据连接请求启动与访问服务器的会话连接,向访问服务器发送建立会话请求。In this embodiment, the user browses the returned list information, selects an access server in the list information, and sends a connection request to the web server through the client to establish a connection with the selected access server, if the client has the selected access. The server establishes a connection permission, and the web server initiates a session connection with the access server according to the connection request, and sends a setup session request to the access server.
会话(session)是一种持久网络协议,本实施例通过在web服务器与访问服务器之间创建关联,从而起到交换数据包的作用,并由web服务器保存会话的内容。A session is a persistent network protocol. In this embodiment, an association is created between a web server and an access server, thereby playing the role of exchanging data packets, and the content of the session is saved by the web server.
第二发送模块103,设置成:接收所述访问服务器根据所述建立会话请求返回的建立成功的响应消息,向所述客户端发送所述响应消息,以便所述客户端访问所述访问服务器。The second sending module 103 is configured to: receive the response message that the access server returns a successful setup according to the establishment session request, and send the response message to the client, so that the client accesses the access server.
本实施例中,web服务器向访问服务器发送建立会话请求后,访问服务器根据该会话请求与web服务器建立会话,向web服务器返回会话建立成功的响应消息,web服务器在接收到该响应消息后,同样向客户端返回该响应消息并在浏览器上显示,以告知用户会话建立成功。In this embodiment, after the web server sends a setup session request to the access server, the access server establishes a session with the web server according to the session request, and returns a response message of successful session establishment to the web server, and the web server receives the response message, The response message is returned to the client and displayed on the browser to inform the user that the session was established successfully.
本实施例采用通用的web方式,使得用户可在公网上仅仅使用浏览器,如IE浏览器等,即可对电信业务的现场环境中的多个服务器进行访问操作, 不需要用户用远程桌面、telnet等工具远程登录,远程访问的方法较为简单。The embodiment adopts a common web mode, so that the user can use the browser on the public network, such as an IE browser, to perform access operations on multiple servers in the live environment of the telecommunication service. You don't need users to log in remotely using tools such as remote desktop or telnet. The method of remote access is relatively simple.
在一可选的实施例中,如图6所示,在上述图5的实施例的基础上,所述返回模块101包括:In an optional embodiment, as shown in FIG. 6, on the basis of the foregoing embodiment of FIG. 5, the return module 101 includes:
第一检查单元,设置成:接收所述客户端发送的登录请求,根据所述登录请求进行登录权限检查;The first checking unit is configured to: receive a login request sent by the client, and perform a login permission check according to the login request;
返回单元,设置成:当登录权限检查通过后,向所述客户端返回访问服务器的列表信息。The return unit is configured to: return the list information of the access server to the client after the login permission check is passed.
本实施例中,web服务器接收客户端的登录请求,对客户端的登录信息(包括用户名及终端的标识信息等等)进行登录权限检查,判断该用户是否是已注册用户并且该用户是否具有登录权限,如果该用户为已注册用户且具有登录权限,则登录权限检查通过,登录web服务器成功,然后web服务器向客户端返回可访问的服务器的列表信息。In this embodiment, the web server receives the login request of the client, checks the login information of the client (including the user name and the identification information of the terminal, etc.), and determines whether the user is a registered user and whether the user has the login permission. If the user is a registered user and has login permission, the login permission check passes, the login web server succeeds, and then the web server returns the list information of the accessible server to the client.
本实施例中,对客户端登录web服务器的登录权限进行限制,只有预先注册过的用户且具有登录权限的用户方可登录web服务器,否则,登录失败,以此提高访问的安全性。In this embodiment, the login permission of the client to log in to the web server is restricted. Only the pre-registered user and the user with the login authority can log in to the web server. Otherwise, the login fails, thereby improving the security of the access.
在一可选的实施例中,如图7所示,在上述图5的实施例的基础上,所述第一发送模块102包括:In an optional embodiment, as shown in FIG. 7, on the basis of the foregoing embodiment of FIG. 5, the first sending module 102 includes:
第二检查单元,设置成:接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求进行连接权限检查;The second checking unit is configured to: receive a connection request sent by the client to establish a connection with the access server, and perform a connection permission check according to the connection request;
第一发送单元,设置成:当连接权限检查通过后,向所述访问服务器发送建立会话请求。The first sending unit is configured to: after the connection permission check is passed, send a setup session request to the access server.
本实施例中,web服务器接收客户端与访问服务器建立连接的连接请求,对连接请求进行连接权限检查,判断该用户是否具有连接选中的访问服务器的权限,如果该用户具有连接选中的访问服务器的权限,则连接权限检查通过,此时,由web服务器直接向访问服务器发送建立会话请求。In this embodiment, the web server receives a connection request between the client and the access server, performs a connection permission check on the connection request, and determines whether the user has the right to connect to the selected access server, if the user has the access server selected to connect with the selected access server. Permission, the connection permission check is passed, at this time, the web server directly sends a setup session request to the access server.
本实施例中,对客户端连接访问服务器的连接权限进行限制,只有具有 连接选中的访问服务器的权限的用户方可与访问服务器进行连接,否则,无法执行后续步骤,以此提高访问的安全性。In this embodiment, the connection permission of the client connection access server is restricted, and only Users who connect to the selected access server can connect to the access server. Otherwise, subsequent steps cannot be performed to improve access security.
在一可选的实施例中,如图8所示,在上述图5的实施例的基础上,所述web服务器还包括:In an optional embodiment, as shown in FIG. 8, on the basis of the foregoing embodiment of FIG. 5, the web server further includes:
第三发送模块104,设置成:接收所述客户端发送的操作命令,向所述访问服务器发送所述操作命令;The third sending module 104 is configured to: receive an operation command sent by the client, and send the operation command to the access server;
接收模块105,设置成:接收所述访问服务器执行所述操作命令后返回的响应消息并返回该响应消息至所述客户端。The receiving module 105 is configured to: receive a response message returned by the access server after executing the operation command, and return the response message to the client.
本实施例中,web服务器与访问服务器建立会话后,客户端可以远程访问该访问服务器。具体为:客户端向web服务器发送操作命令,若用户具有命令执行权限,则web服务器向访问服务器发送该操作命令。In this embodiment, after the web server establishes a session with the access server, the client can remotely access the access server. Specifically, the client sends an operation command to the web server, and if the user has the command execution permission, the web server sends the operation command to the access server.
访问服务器接收该操作命令并执行,当执行完成后,向web服务器发送执行操作命令后的响应消息,web服务器接收该响应消息,然后再将该响应消息返回给客户端。The access server receives the operation command and executes, and when the execution is completed, sends a response message after executing the operation command to the web server, and the web server receives the response message, and then returns the response message to the client.
另外,当客户端要结束远程访问时,可向web服务器发送结束会话请求,web服务器将该结束会话请求发送给访问服务器,访问服务器响应并结束会话,向web服务器发送结束响应消息,web服务器接收该结束响应消息并返回给客户端,至此客户端结束远程访问。In addition, when the client wants to end the remote access, the web server may send an end session request, the web server sends the end session request to the access server, the access server responds and ends the session, and sends an end response message to the web server, and the web server receives The end response message is returned to the client, and the client ends the remote access.
在一可选的实施例中,在上述图8的实施例的基础上,所述第三发送模块104包括:第三检查单元,设置成:接收所述客户端发送的操作命令,根据所述操作命令进行命令执行权限检查;第二发送单元,设置成:当命令执行权限检查通过后,向所述访问服务器发送所述操作命令。In an optional embodiment, on the basis of the foregoing embodiment of FIG. 8, the third sending module 104 includes: a third checking unit, configured to: receive an operation command sent by the client, according to the The operation command performs a command execution permission check; the second sending unit is configured to: after the command execution permission check passes, send the operation command to the access server.
本实施例与上述实施例中客户端向web服务器发送登录请求及连接请求的实施例类似,均需要进行权限的检查,所不同的是,本实施例的第三检查单元是对操作命令进行命令执行权限检查。This embodiment is similar to the embodiment in which the client sends a login request and a connection request to the web server in the foregoing embodiment, and the permission check is required. The third check unit of the embodiment is to execute the command for the operation command. Execute permission check.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是 利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only a preferred embodiment of the present invention, and thus does not limit the scope of the patent of the present invention. The equivalent structure or equivalent flow transformation made by the specification and the drawings of the present invention, or directly or indirectly applied to other related technical fields, are all included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
本发明技术方案的一种远程访问服务器的方法及web服务器,在终端的客户端上登录web服务器,由web服务器向客户端返回多个可访问的服务器的列表信息,用户可直接选择列表中的某一访问服务器,并向web服务器发送与该访问服务器建立连接的连接请求,然后,web服务器与访问服务器建立会话,至此客户端可访问电信业务的现场环境中的多个访问服务器中的一个,本实施例采用通用的web方式,不需要使用远程桌面、telnet等工具,访问操作较简单,可以极大提高客户端访问服务器的方便性、灵活性。因此本发明具有很强的工业实用性。 The method for remotely accessing a server and the web server of the technical solution of the present invention log in to the web server on the client of the terminal, and the web server returns the list information of the plurality of accessible servers to the client, and the user can directly select the list in the list. Accessing the server and sending a connection request to the web server to establish a connection with the access server, and then the web server establishes a session with the access server, and the client can access one of the plurality of access servers in the live environment of the telecommunication service, This embodiment adopts a common web mode, and does not need to use tools such as remote desktop and telnet, and the access operation is relatively simple, which can greatly improve the convenience and flexibility of the client accessing the server. Therefore, the present invention has strong industrial applicability.

Claims (12)

  1. 一种远程访问服务器的方法,该方法包括以下步骤:A method of remotely accessing a server, the method comprising the steps of:
    web服务器接收客户端发送的登录请求,根据所述登录请求向所述客户端返回访问服务器的列表信息;Receiving, by the web server, a login request sent by the client, and returning, to the client, the list information of the access server according to the login request;
    在所述客户端选中所述列表信息中的一访问服务器后,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求向所述访问服务器发送建立会话请求;After the client selects an access server in the list information, receiving a connection request sent by the client to establish a connection with the access server, and sending a setup session request to the access server according to the connection request;
    接收所述访问服务器根据所述建立会话请求返回的建立成功的响应消息,向所述客户端发送所述响应消息,以便所述客户端访问所述访问服务器。Receiving, by the access server, a response message that is successfully established according to the establishment session request, and sending the response message to the client, so that the client accesses the access server.
  2. 如权利要求1所述的远程访问服务器的方法,其中,所述web服务器接收客户端发送的登录请求,根据所述登录请求向所述客户端返回访问服务器的列表信息的步骤包括:The method of remotely accessing a server according to claim 1, wherein the web server receives a login request sent by the client, and returns the list information of the access server to the client according to the login request, including:
    接收所述客户端发送的登录请求,根据所述登录请求进行登录权限检查;Receiving a login request sent by the client, and performing a login permission check according to the login request;
    当登录权限检查通过后,向所述客户端返回访问服务器的列表信息。After the login permission check is passed, the list information of the access server is returned to the client.
  3. 如权利要求1或2所述的远程访问服务器的方法,其中,所述在所述客户端选中所述列表信息中的一访问服务器后,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求向所述访问服务器发送建立会话请求的步骤包括:The method of remotely accessing a server according to claim 1 or 2, wherein after the client selects an access server in the list information, receiving a connection established by the client with the access server The connection request, the step of sending a setup session request to the access server according to the connection request includes:
    接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求进行连接权限检查;Receiving a connection request sent by the client to establish a connection with the access server, and performing a connection permission check according to the connection request;
    当连接权限检查通过后,向所述访问服务器发送建立会话请求。After the connection permission check is passed, a setup session request is sent to the access server.
  4. 如权利要求1所述的远程访问服务器的方法,该方法还包括:The method of remotely accessing a server of claim 1 further comprising:
    接收所述客户端发送的操作命令,向所述访问服务器发送所述操作命令;Receiving an operation command sent by the client, and sending the operation command to the access server;
    接收所述访问服务器执行所述操作命令后返回的响应消息并返回该响应消息至所述客户端。Receiving a response message returned by the access server after executing the operation command and returning the response message to the client.
  5. 如权利要求4所述的远程访问服务器的方法,其中,所述接收所述客 户端发送的操作命令,向所述访问服务器发送所述操作命令的步骤包括:The method of remotely accessing a server of claim 4 wherein said receiving said guest The operation command sent by the client, the step of sending the operation command to the access server includes:
    接收所述客户端发送的操作命令,根据所述操作命令进行命令执行权限检查;Receiving an operation command sent by the client, and performing a command execution permission check according to the operation command;
    当命令执行权限检查通过后,向所述访问服务器发送所述操作命令。After the command execution permission check is passed, the operation command is sent to the access server.
  6. 一种web服务器,所述web服务器包括返回模块、第一发送模块和第二发送模块,其中:A web server, the web server comprising a return module, a first sending module and a second sending module, wherein:
    所述返回模块设置成:接收客户端发送的登录请求,根据所述登录请求向所述客户端返回访问服务器的列表信息;The returning module is configured to: receive a login request sent by the client, and return, to the client, list information of the access server according to the login request;
    所述第一发送模块设置成:在所述客户端选中所述列表信息中的一访问服务器后,接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求向所述访问服务器发送建立会话请求;The first sending module is configured to: after the client selects an access server in the list information, receive a connection request sent by the client to establish a connection with the access server, according to the connection request The access server sends a setup session request;
    所述第二发送模块设置成:接收所述访问服务器根据所述建立会话请求返回的建立成功的响应消息,向所述客户端发送所述响应消息,以便使得所述客户端访问所述访问服务器。The second sending module is configured to: receive the response message that the access server returns a successful setup according to the establishment session request, and send the response message to the client, so that the client accesses the access server .
  7. 如权利要求6所述的web服务器,其中,所述返回模块包括第一检查单元和返回单元,其中:The web server according to claim 6, wherein said returning module comprises a first checking unit and a returning unit, wherein:
    所述第一检查单元设置成:接收所述客户端发送的登录请求,根据所述登录请求进行登录权限检查;The first checking unit is configured to: receive a login request sent by the client, and perform a login permission check according to the login request;
    所述返回单元设置成:当登录权限检查通过后,向所述客户端返回访问服务器的列表信息。The returning unit is configured to: return the list information of the access server to the client after the login permission check is passed.
  8. 如权利要求6或7所述的web服务器,其中,所述第一发送模块包括第二检查单元和第一发送单元,其中:The web server according to claim 6 or 7, wherein the first transmitting module comprises a second checking unit and a first transmitting unit, wherein:
    所述第二检查单元设置成:接收所述客户端发送的与所述访问服务器建立连接的连接请求,根据所述连接请求进行连接权限检查;The second checking unit is configured to: receive a connection request sent by the client to establish a connection with the access server, and perform a connection permission check according to the connection request;
    所述第一发送单元设置成:当连接权限检查通过后,向所述访问服务器发送所述建立会话请求。 The first sending unit is configured to: after the connection authority check passes, send the establishment session request to the access server.
  9. 如权利要求6所述的web服务器,该web服务器还包括第三发送模块和接收模块,其中:The web server of claim 6, the web server further comprising a third transmitting module and a receiving module, wherein:
    所述第三发送模块设置成:接收所述客户端发送的操作命令,向所述访问服务器发送所述操作命令;The third sending module is configured to: receive an operation command sent by the client, and send the operation command to the access server;
    所述接收模块设置成:接收所述访问服务器执行所述操作命令后返回的响应消息并返回该响应消息至所述客户端。The receiving module is configured to: receive a response message returned by the access server after executing the operation command, and return the response message to the client.
  10. 如权利要求9所述的web服务器,其中,所述第三发送模块包括第三检查单元和第二发送单元,其中:The web server according to claim 9, wherein said third transmitting module comprises a third checking unit and a second transmitting unit, wherein:
    所述第三检查单元设置成:接收所述客户端发送的操作命令,根据所述操作命令进行命令执行权限检查;The third checking unit is configured to: receive an operation command sent by the client, and perform a command execution permission check according to the operation command;
    所述第二发送单元设置成:当命令执行权限检查通过后,向所述访问服务器发送所述操作命令。The second sending unit is configured to: after the command execution permission check passes, send the operation command to the access server.
  11. 一种计算机程序,包括程序指令,当该程序指令被web服务器执行时,使得该web服务器可执行权利要求1-5中任一项所述的远程访问服务器的方法。A computer program comprising program instructions that, when executed by a web server, cause the web server to perform the method of remotely accessing the server of any of claims 1-5.
  12. 一种载有权利要求11所述计算机程序的载体。 A carrier carrying the computer program of claim 11.
PCT/CN2014/089341 2014-09-25 2014-10-23 Remote access server method and web server WO2015131524A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410498503.6 2014-09-25
CN201410498503.6A CN105516061A (en) 2014-09-25 2014-09-25 Remote server access method and web server

Publications (1)

Publication Number Publication Date
WO2015131524A1 true WO2015131524A1 (en) 2015-09-11

Family

ID=54054424

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089341 WO2015131524A1 (en) 2014-09-25 2014-10-23 Remote access server method and web server

Country Status (2)

Country Link
CN (1) CN105516061A (en)
WO (1) WO2015131524A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131152A (en) * 2019-11-15 2020-05-08 苏州浪潮智能科技有限公司 Automatic verification method and system for cross-platform remote login protection system
CN111314452A (en) * 2020-02-11 2020-06-19 安超云软件有限公司 Shell access method, device, equipment and storage medium of cloud mobile phone
CN114254987A (en) * 2021-11-22 2022-03-29 正方软件股份有限公司 Intelligent remote course selection method and system

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257344B (en) * 2017-07-05 2020-07-28 福建网龙计算机网络信息技术有限公司 Server access method and system
CN109189542B (en) * 2018-09-28 2021-10-15 成都安恒信息技术有限公司 Remote desktop access method for operation and maintenance auditing system
CN112115504A (en) * 2020-06-29 2020-12-22 上海金融期货信息技术有限公司 Database access method and system based on TDS protocol
CN113596096A (en) * 2021-06-30 2021-11-02 深圳市广通远驰科技有限公司 Communication method, communication device, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313545A1 (en) * 2007-06-13 2008-12-18 Microsoft Corporation Systems and methods for providing desktop or application remoting to a web browser
CN102769631A (en) * 2012-07-31 2012-11-07 华为技术有限公司 Method, system and access equipment for accessing Cloud server
CN102811219A (en) * 2012-07-26 2012-12-05 浪潮电子信息产业股份有限公司 Method for remotely accessing desktop of computer in intranet across network segments in cluster system
CN102833338A (en) * 2012-08-31 2012-12-19 福建升腾资讯有限公司 Remote desktop display method based on Web
WO2013045969A1 (en) * 2011-09-29 2013-04-04 Sculpteo Method for providing remote server content to a web browser of a user computer through a third party server, web browser, third party server, and computer-readable medium related thereto
CN103581265A (en) * 2012-08-07 2014-02-12 深圳市傲冠软件股份有限公司 Remote access method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100346338C (en) * 2001-07-12 2007-10-31 捷讯研究有限公司 System and method for providing remote data access and transcoding for a mobile communication device
CN100471114C (en) * 2005-07-01 2009-03-18 萧学文 Method and system for accessing computer resource through mobile terminal
CN101132459A (en) * 2007-06-27 2008-02-27 朱在国 Method for computer remote control by mobile phone
CN101499010B (en) * 2008-01-30 2013-04-10 运软网络科技(上海)有限公司 Method for using desktop application programs on mobile phone
CN102377737B (en) * 2010-08-10 2016-02-10 中兴通讯股份有限公司 The system and method for the interactive email access protocol server of a kind of many account access

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313545A1 (en) * 2007-06-13 2008-12-18 Microsoft Corporation Systems and methods for providing desktop or application remoting to a web browser
WO2013045969A1 (en) * 2011-09-29 2013-04-04 Sculpteo Method for providing remote server content to a web browser of a user computer through a third party server, web browser, third party server, and computer-readable medium related thereto
CN102811219A (en) * 2012-07-26 2012-12-05 浪潮电子信息产业股份有限公司 Method for remotely accessing desktop of computer in intranet across network segments in cluster system
CN102769631A (en) * 2012-07-31 2012-11-07 华为技术有限公司 Method, system and access equipment for accessing Cloud server
CN103581265A (en) * 2012-08-07 2014-02-12 深圳市傲冠软件股份有限公司 Remote access method and system
CN102833338A (en) * 2012-08-31 2012-12-19 福建升腾资讯有限公司 Remote desktop display method based on Web

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131152A (en) * 2019-11-15 2020-05-08 苏州浪潮智能科技有限公司 Automatic verification method and system for cross-platform remote login protection system
CN111131152B (en) * 2019-11-15 2022-06-10 苏州浪潮智能科技有限公司 Automatic verification method and system for cross-platform remote login protection system
CN111314452A (en) * 2020-02-11 2020-06-19 安超云软件有限公司 Shell access method, device, equipment and storage medium of cloud mobile phone
CN111314452B (en) * 2020-02-11 2022-08-26 安超云软件有限公司 Shell access method, device, equipment and storage medium of cloud mobile phone
CN114254987A (en) * 2021-11-22 2022-03-29 正方软件股份有限公司 Intelligent remote course selection method and system

Also Published As

Publication number Publication date
CN105516061A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
WO2015131524A1 (en) Remote access server method and web server
US9240977B2 (en) Techniques for protecting mobile applications
CN104158808B (en) Portal authentication method and its device based on APP applications
WO2017024842A1 (en) Internet access authentication method, client, computer storage medium
US9369286B2 (en) System and methods for facilitating authentication of an electronic device accessing plurality of mobile applications
CN104144163B (en) Auth method, apparatus and system
CN103874069B (en) A kind of wireless terminal MAC authentication devices and method
JP6013508B2 (en) Relay device, relay method, and program
CN102739684B (en) Portal authentication method based on virtual IP address, and server thereof
WO2022247751A1 (en) Method, system and apparatus for remotely accessing application, device, and storage medium
CN106131074B (en) Local area network resource access method and system
CN103796278A (en) Mobile terminal wireless network access control method
CN103825881A (en) Method and apparatus for realizing redirection of WLAN user based on wireless access controller (AC)
TW201706901A (en) Authentication method, apparatus, and system
US10685098B2 (en) Establishing access sessions
CN110138779B (en) Hadoop platform safety management and control method based on multi-protocol reverse proxy
US9893968B1 (en) Troubleshooting network paths in a distributed computing environment
CN110557358A (en) Honeypot server communication method, SSLStrip man-in-the-middle attack perception method and related device
US20180084058A1 (en) Communication device, communication method, controlled device, and non-transitory computer readable medium
CA2912774C (en) Providing single sign-on for wireless devices
CN109379339A (en) A kind of portal authentication method and device
WO2016197993A1 (en) Router, mobile terminal, and alarm information sending method, and alarm information receiving method
CN109905402B (en) SSO login method and device based on SSL VPN
EP3738012B1 (en) Asserting user, app, and device binding in an unmanaged mobile device
CN109460647B (en) Multi-device secure login method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14884829

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14884829

Country of ref document: EP

Kind code of ref document: A1