CN114338633B - Method and system for remotely connecting Linux server - Google Patents

Method and system for remotely connecting Linux server Download PDF

Info

Publication number
CN114338633B
CN114338633B CN202111610935.8A CN202111610935A CN114338633B CN 114338633 B CN114338633 B CN 114338633B CN 202111610935 A CN202111610935 A CN 202111610935A CN 114338633 B CN114338633 B CN 114338633B
Authority
CN
China
Prior art keywords
server
login
linux
authentication
client
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
CN202111610935.8A
Other languages
Chinese (zh)
Other versions
CN114338633A (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.)
Jinan Supercomputing Technology Research Institute
Original Assignee
Jinan Supercomputing Technology Research Institute
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 Jinan Supercomputing Technology Research Institute filed Critical Jinan Supercomputing Technology Research Institute
Priority to CN202111610935.8A priority Critical patent/CN114338633B/en
Publication of CN114338633A publication Critical patent/CN114338633A/en
Application granted granted Critical
Publication of CN114338633B publication Critical patent/CN114338633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for remotely connecting a Linux server, wherein a login server receives a first login request sent by a client; the login server sends an identity authentication request to the authentication server; the authentication server verifies whether the account information of the login request user is correct or not according to the account information stored in the database in advance; the login server receives a Linux server selection request sent by a client; the login server forwards the Linux server selection request to the authentication server; the authentication server verifies the client, and returns a verification result to the login server; the login server executes corresponding operation according to the state information in the return parameters; the Linux server returns a login authentication result to the login server; the login server directly returns the information received from the Linux server to the client. The Linux server login and program hanging method is convenient to use and supports Linux server login and program hanging.

Description

Method and system for remotely connecting Linux server
Technical Field
The invention relates to the technical field of Linux server connection, in particular to a method and a system for remotely connecting a Linux server.
Background
The statements in this section merely relate to the background of the present disclosure and may not necessarily constitute prior art.
Currently, when a user logs in a Linux server, the user needs to install an ssh client program, and when the user wants to hang up a foreground program to run, the client program needs to be realized by means of tool software of a third party. This makes it inconvenient for the user to run other applications separately while the user is on-hook, and the on-hook operation cannot be performed directly on the current window.
When the user wants to connect with the Linux server host of IPv6, most of the current local area networks do not support the IPv6 network, so that the user can only access to a local area network with an IPv6 address, or connect with the Linux server in the IPv6 network segment by using the tunnel proxy tool from IPv4 to IPv6, which increases the complexity of use of the user.
Disclosure of Invention
In order to solve the defects in the prior art, the invention provides a method and a system for remotely connecting a Linux server; the problem that a host computer with an IPv4 network address only cannot access an IPv6 network segment host computer due to complex user on-hook operation is solved; the Linux server login and program hanging up supporting IPv4 and v6 address protocols are convenient to use.
In a first aspect, the present invention provides a method for remotely connecting a Linux server;
a method of remotely connecting a Linux server, comprising:
the login server receives a first login request sent by a client;
the login server sends an identity authentication request to the authentication server;
the authentication server verifies whether the account information of the user requesting login is correct according to the account information stored in the database in advance, and if so, the authentication server sends the resource information of the user to the client;
the login server receives a Linux server selection request sent by a client;
the login server forwards the Linux server selection request to the authentication server;
the authentication server verifies the client, and returns a verification result to the login server;
the login server executes corresponding operation according to the state information in the return parameters; when the state information is true, the Linux server returns a login authentication result to the login server;
the login server directly returns the information received from the Linux server to the client.
In a second aspect, the present invention provides a system for remotely connecting to a Linux server;
a system for remotely connecting a Linux server, comprising: a plurality of clients; each client is connected with a plurality of login servers, and each client is connected with an authentication server; each login server is connected with a plurality of Linux servers, and the Linux servers are servers supporting IPv4 and IPv6 address protocols;
the login server receives a first login request sent by a client;
the login server sends an identity authentication request to the authentication server;
the authentication server verifies whether the account information of the user requesting login is correct according to the account information stored in the database in advance, and if so, the authentication server sends the resource information of the user to the client;
the login server receives a Linux server selection request sent by a client;
the login server forwards the Linux server selection request to the authentication server;
the authentication server verifies the client, and returns a verification result to the login server;
the login server executes corresponding operation according to the state information in the return parameters; when the state information is true, the Linux server returns a login authentication result to the login server;
the login server directly returns the information received from the Linux server to the client.
Compared with the prior art, the invention has the beneficial effects that:
as long as the login server is able to support both IPv4 and IPv6 networks, even if only one of the clients is available, it is possible to communicate with the user resources of the IPv4 or IPv6 network segment without changing its own network environment. In the use process of the client, if a network problem or a human misoperation occurs, and the client is disconnected with the login server, the login server places the link into a hanging pool of the login server, a certain connection duration is maintained, and when the user connects the device again within the connection duration, the last operation can be continued, for example: unedited documents, unexecuted programs, etc. The implementation way reduces the loss of server resources and solves the problem of operation loss caused by unexpected exit of long connection.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention.
FIG. 1 is a system configuration diagram of a first embodiment of the present invention;
fig. 2 is a flowchart of a method according to a first embodiment of the invention.
Detailed Description
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular forms also are intended to include the plural forms, and furthermore, it is to be understood that the terms "comprises" and "comprising" and any variations thereof are intended to cover non-exclusive inclusions, such as, for example, processes, methods, systems, products or devices that comprise a series of steps or units, are not necessarily limited to those steps or units that are expressly listed, but may include other steps or units that are not expressly listed or inherent to such processes, methods, products or devices.
Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
All data acquisition in the embodiment is legal application of the data on the basis of meeting laws and regulations and agreements of users.
Example 1
The embodiment provides a method for remotely connecting a Linux server;
as shown in fig. 1 and 2, a method for remotely connecting a Linux server includes:
s101: the login server receives a first login request sent by a client;
s102: the login server sends an identity authentication request to the authentication server;
s103: the authentication server verifies whether the account information of the user requesting login is correct according to the account information stored in the database in advance, and if so, the authentication server sends the resource information of the user to the client;
s104: the login server receives a Linux server selection request sent by a client;
s105: the login server forwards the Linux server selection request to the authentication server;
s106: the authentication server verifies the client, and returns a verification result to the login server;
s107: the login server executes corresponding operation according to the state information in the return parameters; when the state information is true, the Linux server returns a login authentication result to the login server;
s108: the login server directly returns the information received from the Linux server to the client.
Further, the first login request comprises account information of a login user; the login server is a server which establishes connection with the Linux server through an SSH protocol.
Further, the authentication request includes account information of the login user.
Further, the authentication server verifies whether the account information of the login request user is correct or not according to the account information stored in the database in advance, and if so, a corresponding error prompt is returned to the client.
Further, each Linux server has a unique resource identifier; the resource information of the user comprises: a resource identifier; the error prompt includes: account absence, account/password error, etc.
Further, the Linux server selection request comprises an identifier of the client and a resource identifier;
further, the verification result includes: status, message and data.
Further, the login server executes corresponding operation according to the state information in the return parameters, when the state information is true, the login server analyzes the data information in the return parameters and obtains login information of the Linux server, the login server sends the login information to the corresponding Linux server, the Linux server compares and authenticates the login information sent by the login server with authentication information locally stored by the Linux server, and after authentication is successful, the Linux server returns a login authentication result to the login server.
Further, the method further comprises:
(1) The login server receives an on-hook request of the client; wherein the on-hook request comprises: a client identifier and a hang-up duration;
(2) The login server analyzes the on-hook request, and the login server puts the connection information of the Linux server into an on-hook queue according to the on-hook information obtained through analysis, so that on-hook operation is executed.
Further, the Linux server is a server supporting IPv4 and IPv6 address protocols.
And carrying out identity authentication on the basic information provided by the user, carrying out secondary authentication on the user identity when the user performs certain operations, and pulling user resource information and authentication information after the secondary authentication is passed.
And establishing connection with the Linux server, transmitting user resource information to the Linux server for login authentication in the connection process, and maintaining the connection.
And converting the SSH protocol of the login server and the Linux server into the WebSocket protocol of the login server and the client for communication, and carrying out real-time data transmission.
And rendering the data returned by the Linux received by the client into data which can be normally identified by a user through the set coding specification, and displaying the data.
Monitoring user operation of the client, sending an operation instruction of the user to the login server, and forwarding the user operation server to the Linux server by the login server to complete the series of operations.
And suspending the connection which is temporarily unused by the client to the login server, and disconnecting the login server from the client so as to reduce the coupling degree of the connection with the client.
Example two
The embodiment provides a system for remotely connecting a Linux server;
a system for remotely connecting a Linux server, comprising: a plurality of clients; each client is connected with a plurality of login servers, and each client is connected with an authentication server; each login server is connected with a plurality of Linux servers, and the Linux servers are servers supporting IPv4 and IPv6 address protocols;
the login server receives a first login request sent by a client;
the login server sends an identity authentication request to the authentication server;
the authentication server verifies whether the account information of the user requesting login is correct according to the account information stored in the database in advance, and if so, the authentication server sends the resource information of the user to the client;
the login server receives a Linux server selection request sent by a client;
the login server forwards the Linux server selection request to the authentication server;
the authentication server verifies the client, and returns a verification result to the login server;
the login server executes corresponding operation according to the state information in the return parameters; when the state information is true, the Linux server returns a login authentication result to the login server;
the login server directly returns the information received from the Linux server to the client.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for remotely connecting a Linux server, comprising:
the login server receives a first login request sent by a client;
the login server sends an identity authentication request to the authentication server;
the authentication server verifies whether the account information of the user requesting login is correct according to the account information stored in the database in advance, and if so, the authentication server sends the resource information of the user to the client;
the login server receives a Linux server selection request sent by a client;
the login server forwards the Linux server selection request to the authentication server;
the authentication server verifies the client, and returns a verification result to the login server;
the login server executes corresponding operation according to the state information in the return parameters, when the state information is true, the login server analyzes the data information in the return parameters and obtains login information of the Linux server, the login server sends the login information to the corresponding Linux server, the Linux server compares and authenticates the login information sent by the login server with authentication information locally stored by the Linux server, and after authentication is successful, the Linux server returns a login authentication result to the login server;
the login server directly returns the information received from the Linux server to the client.
2. The method for remotely connecting a Linux server according to claim 1, wherein the first login request includes account information of a login user; the login server is a server which establishes connection with the Linux server through an SSH protocol.
3. A method of remotely connecting a Linux server according to claim 1, wherein said authentication request includes account information of a logged-in user.
4. The method for remotely connecting a Linux server according to claim 1, wherein the authentication server verifies whether the account information of the user requesting login is correct according to the account information stored in the database in advance, and if so, returns a corresponding error prompt to the client.
5. A method for remotely connecting Linux servers as defined in claim 4, wherein each Linux server has a unique resource identifier; the resource information of the user comprises: a resource identifier; the error prompt includes: no account exists, account number or password error.
6. A method of remotely connecting a Linux server as recited in claim 1, wherein the Linux server selection request includes an identifier of a client and a resource identifier.
7. The method for remotely connecting a Linux server of claim 1, wherein verifying the result comprises: status, message and data.
8. A method of remotely connecting a Linux server according to claim 1, further comprising:
the login server receives an on-hook request of the client; wherein the on-hook request comprises: a client identifier and a hang-up duration;
the login server analyzes the on-hook request, and the login server puts the connection information with the Linux server into an on-hook queue according to the on-hook information obtained through analysis, and performs on-hook operation;
the Linux server is a server supporting IPv4 and IPv6 address protocols.
9. A system for remotely connecting a Linux server, comprising: a plurality of clients; each client is connected with a plurality of login servers, and each client is connected with an authentication server; each login server is connected with a plurality of Linux servers, and the Linux servers are servers supporting IPv4 and IPv6 address protocols;
the login server is used for receiving a first login request sent by the client, sending an identity authentication request to the authentication server, receiving a Linux server selection request sent by the client, forwarding the Linux server selection request to the authentication server, executing corresponding operation according to state information in the return parameters, when the state information is true, analyzing data information in the return parameters by the login server and obtaining login information of the Linux server, sending the login information to the corresponding Linux server by the login server, comparing and authenticating the login information sent by the login server with authentication information locally stored by the Linux server, and returning a login authentication result to the login server by the Linux server after authentication is successful;
the authentication server verifies whether the account information of the login request user is correct or not according to the account information stored in the database in advance, if so, the user resource information is sent to the client, the client is verified, and a verification result is returned to the login server.
CN202111610935.8A 2021-12-27 2021-12-27 Method and system for remotely connecting Linux server Active CN114338633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111610935.8A CN114338633B (en) 2021-12-27 2021-12-27 Method and system for remotely connecting Linux server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111610935.8A CN114338633B (en) 2021-12-27 2021-12-27 Method and system for remotely connecting Linux server

Publications (2)

Publication Number Publication Date
CN114338633A CN114338633A (en) 2022-04-12
CN114338633B true CN114338633B (en) 2023-11-10

Family

ID=81012814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111610935.8A Active CN114338633B (en) 2021-12-27 2021-12-27 Method and system for remotely connecting Linux server

Country Status (1)

Country Link
CN (1) CN114338633B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626292A (en) * 2008-07-09 2010-01-13 上海格尔软件股份有限公司 Linux log-on protection method
CN103701919A (en) * 2013-12-31 2014-04-02 曙光云计算技术有限公司 Remote login method and system
CN110071922A (en) * 2019-04-24 2019-07-30 苏州浪潮智能科技有限公司 A kind of method and system of Telnet bulk service device Linux system
CN111079102A (en) * 2018-10-18 2020-04-28 上海擎感智能科技有限公司 Linux remote secure login method, system, storage medium and equipment
CN112688981A (en) * 2019-10-18 2021-04-20 中国司法大数据研究院有限公司 System for remotely operating Linux host through one-way isolation optical gate and implementation method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9256724B2 (en) * 2011-08-30 2016-02-09 Securepush Ltd. Method and system for authorizing an action at a site
GB2519790B (en) * 2013-10-30 2017-07-12 1E Ltd Configuration of network devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626292A (en) * 2008-07-09 2010-01-13 上海格尔软件股份有限公司 Linux log-on protection method
CN103701919A (en) * 2013-12-31 2014-04-02 曙光云计算技术有限公司 Remote login method and system
CN111079102A (en) * 2018-10-18 2020-04-28 上海擎感智能科技有限公司 Linux remote secure login method, system, storage medium and equipment
CN110071922A (en) * 2019-04-24 2019-07-30 苏州浪潮智能科技有限公司 A kind of method and system of Telnet bulk service device Linux system
CN112688981A (en) * 2019-10-18 2021-04-20 中国司法大数据研究院有限公司 System for remotely operating Linux host through one-way isolation optical gate and implementation method

Also Published As

Publication number Publication date
CN114338633A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN101291205B (en) Backup data transmitting method, system, mirror-image server
CN106878135B (en) Connection method and device
CN112217771B (en) Data forwarding method and data forwarding device based on tenant information
CN111193602B (en) Automatic operation and maintenance management system and method
CN103825881A (en) Method and apparatus for realizing redirection of WLAN user based on wireless access controller (AC)
WO2015131524A1 (en) Remote access server method and web server
EP3068139A1 (en) Electronic device and method for controlling electronic device
US20060212587A1 (en) System, method and program product to manage a communication session
CN111212117A (en) Remote interaction method and device
CN114338633B (en) Method and system for remotely connecting Linux server
CN106331051B (en) Document transmission method and system and reception file device send file device
CN115086276B (en) Address management method, device, equipment and system
CN107566476B (en) Access method, SDN controller, forwarding equipment and user access system
US7805733B2 (en) Software implementation of hardware platform interface
CN114095280B (en) Cloud platform server communication channel construction method, communication method, device and server
CN112202780B (en) Data transmission method, device, equipment and medium based on double sockets
CN112769799B (en) Centralized control equipment, intranet penetration method thereof and storage medium
US20150229513A1 (en) Systems and methods for efficient remote security panel configuration and management
CN110401952B (en) Authentication method and related equipment
US20060282523A1 (en) System and method for non-obtrusive monitoring and control of remote services and control gateways
CN106802832A (en) Jenkins node states management method and device
KR20100063886A (en) Remote access system and method for controlling terminal between different networks
CN110266705A (en) Control method and system
CN114070585B (en) SSL VPN authentication method, device and gateway
CN108632090B (en) Network management method and system

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