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

Method and system for remotely connecting Linux server Download PDF

Info

Publication number
CN114338633A
CN114338633A CN202111610935.8A CN202111610935A CN114338633A CN 114338633 A CN114338633 A CN 114338633A CN 202111610935 A CN202111610935 A CN 202111610935A CN 114338633 A CN114338633 A CN 114338633A
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.)
Granted
Application number
CN202111610935.8A
Other languages
Chinese (zh)
Other versions
CN114338633B (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

Images

Abstract

The invention discloses a method and a system for remotely connecting a Linux server.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 user requesting login is correct or not according to the account information pre-stored in the database; 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 the login authentication result to the login server; and the login server directly returns the information received from the Linux server to the client. The method is convenient to use, and simultaneously supports Linux server login and program on-hook.

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 provide background information related to the present disclosure and may not constitute prior art.
At present, when a user logs in a Linux server, the user needs to install a ssh client program, and when the user wants to hang up and run a foreground program, the user needs to use third-party tool software to realize the ssh client program. Therefore, when the user runs the application program on-hook, the user needs to run other application programs independently, and the user cannot directly carry out on-hook operation on the current window, which is very inconvenient.
When a user wants to connect to the Linux server host of IPv6, since most of the current lans do not support the IPv6 network, the user can only access a lan with an IPv6 address, or use the tunnel proxy tool from IPv4 to IPv6 to connect to the Linux server in the IPv6 segment, which increases the complexity of the user.
Disclosure of Invention
In order to solve the defects of the prior art, the invention provides a method and a system for remotely connecting a Linux server; the problem that a user is complex in on-hook operation, and only a host with an IPv4 network address cannot access a host with an IPv6 network segment is solved; the method is convenient to use, and simultaneously supports the login and the on-hook of the Linux server of the IPv4 and the v6 address protocols.
In a first aspect, the present invention provides a method for remotely connecting to a Linux server;
a method of remotely connecting to a Linux server, comprising:
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 user requesting login is correct or not according to the account information pre-stored in the database, and if the account information is correct, 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;
and the login server directly returns the information received from the Linux server to the client.
In a second aspect, the invention 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 method comprises the following steps that 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 user requesting login is correct or not according to the account information pre-stored in the database, and if the account information is correct, 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;
and 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 can support IPv4 and IPv6 networks, even if only one client exists, the login server can communicate with user resources of IPv4 or IPv6 network segments without changing the network environment of the client. In the using process of the client, if a network problem or a human misoperation occurs, and the client is disconnected from the login server, the login server will put the link into an on-hook pool of the login server and keep a certain connection duration, 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 mode not only reduces the loss of server resources, but also solves the problem of operation loss caused by accidental exit of long connection.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the invention and together with the description serve to explain the invention and not to limit the invention.
FIG. 1 is a system configuration diagram according to 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 is to be understood that the following detailed description is exemplary and is intended to provide further explanation of the invention as claimed. 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 invention. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and it should be understood that the terms "comprises" and "comprising", and any variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiments and features of the embodiments of the present invention may be combined with each other without conflict.
All data are obtained according to the embodiment and are legally applied on the data on the basis of compliance with laws and regulations and user consent.
Example one
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: a 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 or not according to the account information pre-stored in the database, and if the account information is correct, 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: and 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 is connected with the Linux server through an SSH protocol.
Further, the identity authentication request comprises account information of a login user.
Further, the authentication server verifies whether the account information of the user requesting login is correct according to the account information pre-stored in the database, and if the account information is wrong, a corresponding error prompt is returned to the client.
Furthermore, each Linux server has a unique resource identifier; the resource information of the user comprises: a resource identifier; the error prompt comprises: account not present, account/password error, etc.
Further, the Linux server selects a request comprising an identifier of a 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 the login information sent by the login server with authentication information locally stored in the Linux server for authentication, and after the 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 a client; wherein the on-hook request comprises: client identification and hang-up duration;
(2) and the login server analyzes the on-hook request, puts the connection information with the Linux server into an on-hook queue according to the on-hook information obtained by analysis, and executes on-hook operation.
Further, the Linux server is a server supporting IPv4 and IPv6 address protocols.
And performing identity authentication on the basic information provided by the user, performing secondary authentication on the identity of the user 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, sending the user resource information to the Linux server for login authentication in the connection process, and keeping the connection.
And converting the SSH protocol of the communication between the login server and the Linux server into the WebSocket protocol of the communication between the login server and the client, and transmitting real-time data.
And rendering the data returned by the Linux and received by the client into data which can be normally identified by the user through a set coding specification, and displaying the data.
Monitoring the user operation of the client, sending the operation instruction of the user to the login server, and then 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 not used by the client to the login server temporarily, 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 method comprises the following steps that 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 user requesting login is correct or not according to the account information pre-stored in the database, and if the account information is correct, 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;
and the login server directly returns the information received from the Linux server to the client.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for remotely connecting a Linux server is characterized by comprising the following steps:
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 user requesting login is correct or not according to the account information pre-stored in the database, and if the account information is correct, 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;
and the login server directly returns the information received from the Linux server to the client.
2. The method according to claim 1, wherein the first login request comprises account information of a user requesting to login; the login server is a server which is connected with the Linux server through an SSH protocol.
3. The method according to claim 1, wherein the identity authentication request comprises account information of a user requesting to log in.
4. The method 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 pre-stored in the database, and if the account information is incorrect, a corresponding error prompt is returned to the client.
5. The method according to claim 1, wherein each Linux server has a unique resource identifier; the resource information of the user comprises: a resource identifier; the error prompt comprises: account not present, account number or password error.
6. The method of claim 1, wherein the Linux server selection request comprises an identifier of the client and a resource identifier.
7. The method of claim 1, wherein the step of remotely connecting to the Linux server comprises the step of verifying the result of the verification: status, message and data.
8. The method according to claim 1, wherein the login server performs corresponding operations according to the status information in the returned parameter, when the status information is true, the login server parses the data information in the returned parameter and obtains login information of the Linux server, the login server sends the login information to the corresponding Linux server, the Linux server compares the login information sent by the login server with authentication information locally stored in the Linux server for authentication, and after the authentication is successful, the Linux server returns the login authentication result to the login server.
9. The method of claim 1, wherein the method further comprises:
the login server receives an on-hook request of a client; wherein the on-hook request comprises: client identification and 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 executes on-hook operation;
the Linux server is a server supporting IPv4 and IPv6 address protocols.
10. A system for remotely connecting a Linux server is characterized by 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 method comprises the following steps that 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 user requesting login is correct or not according to the account information pre-stored in the database, and if the account information is correct, 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;
and the login server directly returns the information received from the Linux server to the client.
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 true CN114338633A (en) 2022-04-12
CN114338633B 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 (7)

* 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
US20130055356A1 (en) * 2011-08-30 2013-02-28 Guy GAFNI Method and system for authorizing an action at a site
CN103701919A (en) * 2013-12-31 2014-04-02 曙光云计算技术有限公司 Remote login method and system
US20150121485A1 (en) * 2013-10-30 2015-04-30 1E Limited Configuration of network devices
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

Patent Citations (7)

* 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
US20130055356A1 (en) * 2011-08-30 2013-02-28 Guy GAFNI Method and system for authorizing an action at a site
US20150121485A1 (en) * 2013-10-30 2015-04-30 1E Limited Configuration of network devices
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
CN114338633B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
EP4054218A1 (en) Direct communication processing method, device, relay terminal, and remote terminal
CN106878135B (en) Connection method and device
CN103825881A (en) Method and apparatus for realizing redirection of WLAN user based on wireless access controller (AC)
CN109167762B (en) IEC104 message checking method and device
CN111193602A (en) Automatic operation and maintenance management system and method
CN107294910B (en) Login method and server
US8472336B2 (en) Network management apparatus for setting communication method of network apparatus
CN107645570A (en) Client loading method and device
CN113595839B (en) Device binding method, terminal device and storage medium
CN107769979B (en) Method for synchronous configuration between routers
CN101877861B (en) Node information acquisition method, client and server
CN112953764A (en) Networking terminal configuration method and device, networking terminal and computer storage medium
CN105991370B (en) UDP channel detection method and device
WO2012155571A1 (en) Base station self-configuration method and device
CN114338633A (en) Method and system for remotely connecting Linux server
CN107566476B (en) Access method, SDN controller, forwarding equipment and user access system
CN106453400B (en) A kind of authentication method and system
CN109068398B (en) Wireless connection method for mobile robot and manual operator and mobile robot system
CN112866309B (en) Communication method and device
US20220353647A1 (en) Method for identifying wireless communication device user
CN114244704A (en) Router LANWAN self-adaptation method and system
US20060282523A1 (en) System and method for non-obtrusive monitoring and control of remote services and control gateways
CN108111588B (en) Method for improving distribution network efficiency of Internet of things equipment based on WIFI
CN110266705A (en) A kind of control method and system
CN113784379B (en) Network management method and device

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