CN115801684B - Terminal interaction method and system based on SSH server - Google Patents
Terminal interaction method and system based on SSH server Download PDFInfo
- Publication number
- CN115801684B CN115801684B CN202310048515.8A CN202310048515A CN115801684B CN 115801684 B CN115801684 B CN 115801684B CN 202310048515 A CN202310048515 A CN 202310048515A CN 115801684 B CN115801684 B CN 115801684B
- Authority
- CN
- China
- Prior art keywords
- information
- terminal
- interaction
- consulting
- preset
- 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
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a terminal interaction method and a terminal interaction system based on an SSH server, wherein the method comprises the following steps: load information of an SSH server is obtained; determining whether to enter a terminal interaction limiting opportunity based on the load information; if yes, acquiring historical interaction information between any pair of information sending terminals and information receiving terminals which log in the SSH server; acquiring the consulting condition of the information receiving terminal on the history interaction information; and based on the consulting condition, carrying out adaptive restriction on information transmitted by the information transmitting terminal to the information receiving terminal in the future. According to the terminal interaction method and system based on the SSH server, when the load of the SSH server is about to be overlarge, the information sending terminal is limited to send target information to the information receiving terminal in the future, the overlarge load of the SSH server is avoided, the execution efficiency of a data transmission task is improved, and the occurrence of downtime of the SSH server is avoided.
Description
Technical Field
The invention relates to the technical field of communication processing, in particular to a terminal interaction method and system based on an SSH server.
Background
Currently, data transmission based on SSH (Secure SHell) network security protocol is mostly realized based on a server, SSH network security protocol is applied to the server to form an SSH server, a terminal needing to perform data transmission remotely logs in the SSH server to perform data security transmission, and the SSH server is popular by providing higher security guarantee for data transmission. However, the SSH server has limited load capacity, and when the SSH server is used by multiple terminals, more data transmission tasks are generated, which may cause the SSH server to be overloaded, affect the execution efficiency of the data transmission tasks, and even may cause the SSH server to crash. Thus, a solution is needed.
Disclosure of Invention
The invention aims to provide a terminal interaction method based on an SSH server, when the load of the SSH server is about to be overlarge, an information sending terminal is limited to send target information to an information receiving terminal in the future, the overload of the SSH server is avoided, the execution efficiency of a data transmission task is improved, downtime of the SSH server is avoided, in addition, the sending of the target information is adaptively limited based on the consulting condition of the information receiving terminal on historical interaction information, and the rationality of terminal interaction limitation is improved.
The terminal interaction method based on the SSH server provided by the embodiment of the invention comprises the following steps:
load information of an SSH server is obtained;
determining whether to enter a terminal interaction limiting opportunity based on the load information;
if yes, acquiring historical interaction information between any pair of information sending terminals and information receiving terminals which log in the SSH server;
acquiring the consulting condition of the information receiving terminal on the history interaction information;
and based on the consulting condition, carrying out adaptive restriction on the information sending terminal to send target information to the information receiving terminal in the future.
Preferably, determining whether to enter a terminal interaction limit opportunity based on the load information includes:
acquiring a preset first characterization template;
carrying out characterization processing on the load information based on the first characterization template to obtain a load information feature set;
acquiring a preset terminal interaction limiting time to enter a determination library; the terminal interaction limit opportunity entering determination library comprises: a plurality of standard load information feature sets;
matching the load information feature set with any standard load information feature set to obtain a first matching degree;
and when the first matching degree is larger than or equal to a preset first matching degree threshold value, determining to enter terminal interaction limiting time.
Preferably, based on the reference condition, the adaptive limiting of the information sending terminal to send target information to the information receiving terminal in the future includes:
determining a consulting mode based on the consulting condition; the consulting mode comprises the following steps: sequentially consulting according to the information receiving sequence, sequentially consulting from big to small according to the information priority, and mixedly consulting;
when the consulting mode is that the information is consulted in sequence according to the information receiving sequence, extracting the information quantity which is not consulted from the consulting condition;
when the non-consulted information quantity is greater than or equal to a preset information quantity threshold, prohibiting the target information from being sent;
when the consulting mode is that the information priority is consulted in sequence from big to small, extracting the maximum priority of the consulted information from the consulting condition, and acquiring the priority of the target information;
when the priority is smaller than the maximum priority, prohibiting the target information from being sent;
when the reference mode is mixed reference, acquiring a preset second characterization extraction template;
carrying out characterization processing on the consulting situation based on the second characterization template to obtain a consulting situation feature set;
acquiring a preset adaptive restriction strategy library; the adaptive restriction policy repository includes: a plurality of standard reference condition feature sets and adaptive limiting strategies which are in one-to-one correspondence;
matching the reference condition feature set with any one of the standard reference condition feature sets to obtain a second matching degree;
and executing the adaptive limiting strategy corresponding to the standard reference condition feature set with the maximum second matching degree on the target information.
Preferably, the terminal interaction method based on the SSH server further comprises the following steps:
acquiring terminal operation information generated in the latest preset time of the information sending terminal;
determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information;
if yes, a preset information interaction intention confirmation list making template corresponding to the information type of the target information is obtained;
creating a template based on the information interaction intention confirming list, and creating an information interaction intention confirming list according to the load information;
pushing the information interaction intention confirmation list to the information sending terminal;
temporarily permitting the target information to be transmitted when the information transmitting terminal generates a selection operation of selecting an information interaction intention from the information interaction intention confirmation list;
and updating the information interaction intention confirmation list based on the selection operation.
Preferably, determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information includes:
carrying out characterization processing on the terminal operation information based on a preset third characterization template to obtain a terminal operation information feature set;
acquiring a preset terminal interaction temporary permission occasion and entering a determination library; the terminal interaction temporary permission occasion entering determination library comprises the following steps: a plurality of standard terminal operation information feature sets;
matching the terminal operation information feature set with any standard terminal operation information feature set to obtain a third matching degree;
and when the third matching degree is greater than or equal to a preset second matching degree threshold value, determining the temporary permission opportunity for the interaction of the access terminal.
The terminal interaction system based on the SSH server provided by the embodiment of the invention comprises:
the load information acquisition module is used for acquiring load information of the SSH server;
the terminal interaction limiting occasion determining module is used for determining whether to enter a terminal interaction limiting occasion or not based on the load information;
the history interaction information acquisition module is used for acquiring history interaction information between any pair of information sending terminals and information receiving terminals which log in the SSH server if the history interaction information is yes;
the consulting condition acquisition module is used for acquiring the consulting condition of the information receiving terminal on the history interaction information;
and the adaptation limiting module is used for carrying out adaptation limiting on the target information sent by the information sending terminal to the information receiving terminal in the future based on the consulting condition.
Preferably, the terminal interaction limit opportunity determining module determines whether to enter a terminal interaction limit opportunity based on the load information, and performs the following operations:
acquiring a preset first characterization template;
carrying out characterization processing on the load information based on the first characterization template to obtain a load information feature set;
acquiring a preset terminal interaction limiting time to enter a determination library; the terminal interaction limit opportunity entering determination library comprises: a plurality of standard load information feature sets;
matching the load information feature set with any standard load information feature set to obtain a first matching degree;
and when the first matching degree is larger than or equal to a preset first matching degree threshold value, determining to enter terminal interaction limiting time.
Preferably, the adaptation limiting module performs adaptation limiting on the target information sent by the information sending terminal to the information receiving terminal in the future based on the reference condition, and performs the following operations:
determining a consulting mode based on the consulting condition; the consulting mode comprises the following steps: sequentially consulting according to the information receiving sequence, sequentially consulting from big to small according to the information priority, and mixedly consulting;
when the consulting mode is that the information is consulted in sequence according to the information receiving sequence, extracting the information quantity which is not consulted from the consulting condition;
when the non-consulted information quantity is greater than or equal to a preset information quantity threshold, prohibiting the target information from being sent;
when the consulting mode is that the information priority is consulted in sequence from big to small, extracting the maximum priority of the consulted information from the consulting condition, and acquiring the priority of the target information;
when the priority is smaller than the maximum priority, prohibiting the target information from being sent;
when the reference mode is mixed reference, acquiring a preset second characterization extraction template;
carrying out characterization processing on the consulting situation based on the second characterization template to obtain a consulting situation feature set;
acquiring a preset adaptive restriction strategy library; the adaptive restriction policy repository includes: a plurality of standard reference condition feature sets and adaptive limiting strategies which are in one-to-one correspondence;
matching the reference condition feature set with any one of the standard reference condition feature sets to obtain a second matching degree;
and executing the adaptive limiting strategy corresponding to the standard reference condition feature set with the maximum second matching degree on the target information.
Preferably, the terminal interaction system based on the SSH server further comprises:
terminal interaction temporary permission module for including:
acquiring terminal operation information generated in the latest preset time of the information sending terminal;
determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information;
if yes, a preset information interaction intention confirmation list making template corresponding to the information type of the target information is obtained;
creating a template based on the information interaction intention confirming list, and creating an information interaction intention confirming list according to the load information;
pushing the information interaction intention confirmation list to the information sending terminal;
temporarily permitting the target information to be transmitted when the information transmitting terminal generates a selection operation of selecting an information interaction intention from the information interaction intention confirmation list;
and updating the information interaction intention confirmation list based on the selection operation.
Preferably, the terminal interaction temporary permission module determines whether to enter a terminal interaction temporary permission occasion based on the terminal operation information, and performs the following operations:
carrying out characterization processing on the terminal operation information based on a preset third characterization template to obtain a terminal operation information feature set;
acquiring a preset terminal interaction temporary permission occasion and entering a determination library; the terminal interaction temporary permission occasion entering determination library comprises the following steps: a plurality of standard terminal operation information feature sets;
matching the terminal operation information feature set with any standard terminal operation information feature set to obtain a third matching degree;
and when the third matching degree is greater than or equal to a preset second matching degree threshold value, determining the temporary permission opportunity for the interaction of the access terminal.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
fig. 1 is a schematic diagram of a terminal interaction method based on an SSH server in an embodiment of the present invention;
fig. 2 is a schematic diagram of a terminal interaction system based on an SSH server in an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
The embodiment of the invention provides a terminal interaction method based on an SSH server, which is shown in figure 1 and comprises the following steps:
step S1: load information of an SSH server is obtained;
step S2: determining whether to enter a terminal interaction limiting opportunity based on the load information;
step S3: if yes, acquiring historical interaction information between any pair of information sending terminals and information receiving terminals which log in the SSH server;
step S4: acquiring the consulting condition of the information receiving terminal on the history interaction information;
step S5: and based on the consulting condition, carrying out adaptive restriction on the information sending terminal to send target information to the information receiving terminal in the future.
The working principle and the beneficial effects of the technical scheme are as follows:
the load information of the SSH server is specifically: a process queue length of a data transmission process to be executed historically, a server idle time length record historically, and the like. Terminals logged in the SSH server are divided into an information sending terminal and an information receiving terminal, the information sending terminal sends information to be transmitted, the information receiving terminal correspondingly receives the information, and the information sending terminal and the information receiving terminal are matched in pairs. The history interaction information specifically includes: information sent by the information sending terminal to the information receiving terminal historically. The information receiver refers to the history interaction information on the information receiving terminal to generate a reference condition. The consulting situation is specifically: the receiving order of the information checked successively, the priority of the information checked successively, the amount of the information not checked, and the like. The priority of the information is marked by the information sender according to the willingness of the information receiver to look at preferentially before sending the information.
When the method is specifically applied, whether the load is about to be excessive or not is determined based on the load information of the SSH server, if yes, terminal interaction limiting time is entered, and the method adapts to limiting the information sending terminal to send target information to the information receiving terminal in the future based on the reference condition of the information receiving terminal to the history interaction information. For example: if the information receiving terminal does not refer to more information, the information transmitting terminal is prohibited from transmitting the target information, and the information receiving terminal waits for the information receiving terminal to refer to less information after the information receiving terminal refers to the information processing, and then allows transmission.
When the load of the SSH server is about to be overlarge, the information sending terminal is limited to send target information to the information receiving terminal in the future, the overlarge load of the SSH server is avoided, the execution efficiency of a data transmission task is improved, the downtime of the SSH server is avoided, in addition, the sending of the target information is adaptively limited based on the consulting condition of the history interaction information by the information receiving terminal, and the rationality of terminal interaction limitation is improved.
In one embodiment, determining whether to enter a terminal interaction limit opportunity based on the load information includes:
acquiring a preset first characterization template;
carrying out characterization processing on the load information based on the first characterization template to obtain a load information feature set;
acquiring a preset terminal interaction limiting time to enter a determination library; the terminal interaction limit opportunity entering determination library comprises: a plurality of standard load information feature sets;
matching the load information feature set with any standard load information feature set to obtain a first matching degree;
and when the first matching degree is larger than or equal to a preset first matching degree threshold value, determining to enter terminal interaction limiting time.
The working principle and the beneficial effects of the technical scheme are as follows:
the load information feature set obtained by carrying out the feature processing on the load information based on the preset first feature template specifically comprises the following components: the average process queue length of the data transmission process to be executed in the history of the last 1 minute, the average process queue length of the data transmission process to be executed in the history of the last 3 minutes, the average process queue length of the data transmission process to be executed in the history of the last 15 minutes, and the total idle time of the server in the history of the last 60 minutes. The standard load information feature set specifically comprises: the feature set of load information for characterizing that the SSH server is about to be overloaded, for example, specifically includes: the average process queue length of the data transmission process to be executed historically in the last 1 minute is 20, the average process queue length of the data transmission process to be executed historically in the last 3 minutes is 16, the average process queue length of the data transmission process to be executed historically in the last 15 minutes is 12, and the total idle duration of the server historically in the last 60 minutes is 3 minutes. When the first matching degree of the load information feature set and the standard load information feature set is larger than or equal to a preset first matching degree threshold value, the SSH server is about to be oversized, and the terminal interaction limiting opportunity is entered.
According to the embodiment of the invention, the preset first characterization template and the standard load information feature set are introduced, so that the determination efficiency and the determination accuracy of entering the terminal interaction limiting time are improved.
In one embodiment, based on the reference situation, performing adaptive restriction on future transmission of target information by the information transmitting terminal to the information receiving terminal, includes:
determining a consulting mode based on the consulting condition; the consulting mode comprises the following steps: sequentially consulting according to the information receiving sequence, sequentially consulting from big to small according to the information priority, and mixedly consulting;
when the consulting mode is that the information is consulted in sequence according to the information receiving sequence, extracting the information quantity which is not consulted from the consulting condition;
when the non-consulted information quantity is greater than or equal to a preset information quantity threshold, prohibiting the target information from being sent;
when the consulting mode is that the information priority is consulted in sequence from big to small, extracting the maximum priority of the consulted information from the consulting condition, and acquiring the priority of the target information;
when the priority is smaller than the maximum priority, prohibiting the target information from being sent;
when the reference mode is mixed reference, acquiring a preset second characterization extraction template;
carrying out characterization processing on the consulting situation based on the second characterization template to obtain a consulting situation feature set;
acquiring a preset adaptive restriction strategy library; the adaptive restriction policy repository includes: a plurality of standard reference condition feature sets and adaptive limiting strategies which are in one-to-one correspondence;
matching the reference condition feature set with any one of the standard reference condition feature sets to obtain a second matching degree;
and executing the adaptive limiting strategy corresponding to the standard reference condition feature set with the maximum second matching degree on the target information.
The working principle and the beneficial effects of the technical scheme are as follows:
based on the consulting condition, the consulting mode of the information receiver consulting the historical interaction information can be determined, and the consulting mode is divided into three types: firstly, sequentially looking up according to the information receiving sequence, and looking up according to the information received first only; secondly, sequentially looking up the information according to the priority of the information from large to small, and simply looking up the information with large priority according to the priority; third, hybrid consulting, i.e. consulting information, is not purely regular.
When the reference mode is the first mode, the information receiver processes the information according to the receiving time, and when the information quantity is not referred to and is larger than or equal to the preset information quantity threshold value, the information receiver does not process immediately even after the target information is transmitted, so that the target information is forbidden to be transmitted.
When the consulting mode is the second mode, the information receiver is described to process the information according to the priority of the received information, and when the priority of the target information is smaller than the maximum priority of the consulted information, the information receiver can not process the information immediately after the target information is transmitted, so that the target information is forbidden to be transmitted.
When the reference mode is the third mode, the reference condition feature set obtained by carrying out the feature processing on the reference condition based on the preset second feature extraction template specifically comprises: information viewing speed, a ratio of the amount of information that has been referred to the amount of information that has not been referred to, and the like. The feature sets of the standard reference condition and the adaptive limiting strategies which are in one-to-one correspondence are specifically as follows: the standard consulting situation characteristic set reflects a consulting situation, and the adaptive limiting strategy is suitable for adopting under the consulting situation to adaptively limit the target information; for example, the standard reference case feature set includes: the information viewing speed is 0.02 bar/min and the ratio of the information amount which is checked to the information amount which is not checked is 2/7, so that the information receiver is reflected in the checking condition that the information is not checked far away, and the adaptive limiting strategy which is suitable to be adopted is to prohibit the target information from being sent. And matching the reference condition feature set with the standard reference condition feature set to obtain a second matching degree. The larger the second matching degree is, the more suitable the corresponding adaptive restriction policy is to be adopted, and therefore, the adaptive restriction policy corresponding to the standard reference condition feature set with the maximum second matching degree is executed on the target information.
According to the method and the device, the information sending terminal is respectively subjected to adaptive restriction on the sending target information based on different consulting modes of the information receiving party for consulting the historical interaction information, so that the coping capacity and the applicability of the system are improved, in addition, whether the consulting modes are limited or not can be directly determined, adaptive restriction resources are reduced, the adaptive restriction efficiency is improved, when the consulting modes are not limited, a second characterization extraction template, a standard consulting condition feature set and an adaptive restriction strategy are introduced, and the optimal adaptive restriction strategy is adopted, so that the rationality of adaptive restriction is improved.
In one embodiment, the terminal interaction method based on the SSH server further comprises:
acquiring terminal operation information generated in the latest preset time of the information sending terminal;
determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information;
if yes, a preset information interaction intention confirmation list making template corresponding to the information type of the target information is obtained;
creating a template based on the information interaction intention confirming list, and creating an information interaction intention confirming list according to the load information;
pushing the information interaction intention confirmation list to the information sending terminal;
temporarily permitting the target information to be transmitted when the information transmitting terminal generates a selection operation of selecting an information interaction intention from the information interaction intention confirmation list;
and updating the information interaction intention confirmation list based on the selection operation.
The working principle and the beneficial effects of the technical scheme are as follows:
the terminal operation information specifically includes: a record of an input information transmission instruction, and the like. The information type of the target information is specifically: bill information, billing information, etc. The preset information interaction intention confirmation list making template corresponding to the information type specifically comprises the following steps: the information types are different, for example, the information types are bill information, the intention is to check the bill for the information receiver, the intention check list making template of the information interaction intention check contains intention check options of the bill check, selectable times are added after the intention check options, the more the selectable times are, the more the information sender sends temporary target information, the selectable times are determined according to load information, the longer the process queue length of a data transmission process to be executed historically and/or the longer the idle time of a server historically are, and the fewer the times available for the temporary target information to be sent are, the fewer the selectable times are. And based on the information interaction intention confirming list making template, making an information interaction intention confirming list according to the load information, and pushing the information interaction intention confirming list to the information sending terminal. The information sender selects the information interaction intention from the information interaction intention confirmation list, generates a selection operation and temporarily permits the target information to be sent. Meanwhile, based on the selection operation, the information interaction intention confirming list is updated, and when the information interaction intention confirming list is updated, the selectable times attached to the intention confirming options selected by the information sender are reduced by one.
Generally, an information sender may have information to be sent urgently, if the information is still prohibited, user experience is reduced, and user office efficiency is delayed, so that the embodiment of the invention determines whether the information sender may have information to be sent urgently based on terminal operation information, if yes, the terminal interaction temporary permission opportunity is entered, but the information sender is informed of the selectable times of disagreement of the map confirmation options in the form of an information interaction intention confirmation list, temporary interaction times limit exists, excessive use of the information sender is avoided, and the requirement of the information sender for urgent information sending is met as far as possible on the premise of improving user experience.
In one embodiment, determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information includes:
carrying out characterization processing on the terminal operation information based on a preset third characterization template to obtain a terminal operation information feature set;
acquiring a preset terminal interaction temporary permission occasion and entering a determination library; the terminal interaction temporary permission occasion entering determination library comprises the following steps: a plurality of standard terminal operation information feature sets;
matching the terminal operation information feature set with any standard terminal operation information feature set to obtain a third matching degree;
and when the third matching degree is greater than or equal to a preset second matching degree threshold value, determining the temporary permission opportunity for the interaction of the access terminal.
The working principle and the beneficial effects of the technical scheme are as follows:
the terminal operation information feature set obtained by carrying out the feature processing on the terminal operation information based on the third feature module specifically comprises: the frequency of the input information transmission instruction, and the like. The standard terminal operation information feature set specifically comprises: the characteristic set of terminal operation information, which characterizes the information that the information sender needs to send urgently, specifically contains, for example, the frequency of inputting the information sending instruction 3 times/min (explaining that the information sender clicks a button on the sending terminal interface several times). And matching the terminal operation information feature set with the standard terminal operation information feature set to obtain a third matching degree. If the third matching degree is greater than or equal to a preset second matching degree threshold value, the information sender is indicated that the information needs to be sent urgently, and the terminal interaction temporary permission opportunity is entered. The determination efficiency and the determination accuracy of the terminal interaction temporary permission occasion entering determination are improved.
The embodiment of the invention provides a terminal interaction system based on an SSH server, as shown in fig. 2, comprising:
the load information acquisition module 1 is used for acquiring load information of the SSH server;
the terminal interaction limit occasion determining module 2 is used for determining whether to enter a terminal interaction limit occasion or not based on the load information;
a history interaction information obtaining module 3, configured to obtain, if yes, history interaction information between any pair of information sending terminals and information receiving terminals logged in the SSH server;
a consulting situation obtaining module 4, configured to obtain a consulting situation of the history interaction information by the information receiving terminal;
and the adaptation limiting module 5 is used for carrying out adaptation limiting on the target information sent by the information sending terminal to the information receiving terminal in the future based on the consulting condition.
In one embodiment, the terminal interaction limit opportunity determining module 2 determines whether to enter a terminal interaction limit opportunity based on the load information, and performs the following operations:
acquiring a preset first characterization template;
carrying out characterization processing on the load information based on the first characterization template to obtain a load information feature set;
acquiring a preset terminal interaction limiting time to enter a determination library; the terminal interaction limit opportunity entering determination library comprises: a plurality of standard load information feature sets;
matching the load information feature set with any standard load information feature set to obtain a first matching degree;
and when the first matching degree is larger than or equal to a preset first matching degree threshold value, determining to enter terminal interaction limiting time.
In one embodiment, the adaptive limiting module 5 performs adaptive limiting on the future transmission of the target information by the information transmitting terminal to the information receiving terminal based on the reference situation, and performs the following operations:
determining a consulting mode based on the consulting condition; the consulting mode comprises the following steps: sequentially consulting according to the information receiving sequence, sequentially consulting from big to small according to the information priority, and mixedly consulting;
when the consulting mode is that the information is consulted in sequence according to the information receiving sequence, extracting the information quantity which is not consulted from the consulting condition;
when the non-consulted information quantity is greater than or equal to a preset information quantity threshold, prohibiting the target information from being sent;
when the consulting mode is that the information priority is consulted in sequence from big to small, extracting the maximum priority of the consulted information from the consulting condition, and acquiring the priority of the target information;
when the priority is smaller than the maximum priority, prohibiting the target information from being sent;
when the reference mode is mixed reference, acquiring a preset second characterization extraction template;
carrying out characterization processing on the consulting situation based on the second characterization template to obtain a consulting situation feature set;
acquiring a preset adaptive restriction strategy library; the adaptive restriction policy repository includes: a plurality of standard reference condition feature sets and adaptive limiting strategies which are in one-to-one correspondence;
matching the reference condition feature set with any one of the standard reference condition feature sets to obtain a second matching degree;
and executing the adaptive limiting strategy corresponding to the standard reference condition feature set with the maximum second matching degree on the target information.
In one embodiment, the SSH server-based terminal interaction system further includes:
terminal interaction temporary permission module for including:
acquiring terminal operation information generated in the latest preset time of the information sending terminal;
determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information;
if yes, a preset information interaction intention confirmation list making template corresponding to the information type of the target information is obtained;
creating a template based on the information interaction intention confirming list, and creating an information interaction intention confirming list according to the load information;
pushing the information interaction intention confirmation list to the information sending terminal;
temporarily permitting the target information to be transmitted when the information transmitting terminal generates a selection operation of selecting an information interaction intention from the information interaction intention confirmation list;
and updating the information interaction intention confirmation list based on the selection operation.
In one embodiment, the terminal interaction temporary permission module determines whether to enter a terminal interaction temporary permission occasion based on the terminal operation information, and performs the following operations:
carrying out characterization processing on the terminal operation information based on a preset third characterization template to obtain a terminal operation information feature set;
acquiring a preset terminal interaction temporary permission occasion and entering a determination library; the terminal interaction temporary permission occasion entering determination library comprises the following steps: a plurality of standard terminal operation information feature sets;
matching the terminal operation information feature set with any standard terminal operation information feature set to obtain a third matching degree;
and when the third matching degree is greater than or equal to a preset second matching degree threshold value, determining the temporary permission opportunity for the interaction of the access terminal.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (8)
1. The terminal interaction method based on the SSH server is characterized by comprising the following steps of:
load information of an SSH server is obtained;
determining whether to enter a terminal interaction limiting opportunity based on the load information;
if yes, acquiring historical interaction information between any pair of information sending terminals and information receiving terminals which log in the SSH server;
acquiring the consulting condition of the information receiving terminal on the history interaction information;
based on the consulting condition, carrying out adaptive restriction on the information sending terminal to send target information to the information receiving terminal in the future;
based on the consulting situation, the information sending terminal performs adaptive restriction on sending target information to the information receiving terminal in the future, and the method comprises the following steps:
determining a consulting mode based on the consulting condition; the consulting mode comprises the following steps: sequentially consulting according to the information receiving sequence, sequentially consulting from big to small according to the information priority, and mixedly consulting;
when the consulting mode is that the information is consulted in sequence according to the information receiving sequence, extracting the information quantity which is not consulted from the consulting condition;
when the non-consulted information quantity is greater than or equal to a preset information quantity threshold, prohibiting the target information from being sent;
when the consulting mode is that the information priority is consulted in sequence from big to small, extracting the maximum priority of the consulted information from the consulting condition, and acquiring the priority of the target information;
when the priority is smaller than the maximum priority, prohibiting the target information from being sent;
when the reference mode is mixed reference, acquiring a preset second characterization extraction template;
carrying out characterization processing on the consulting situation based on the second characterization template to obtain a consulting situation feature set;
acquiring a preset adaptive restriction strategy library; the adaptive restriction policy repository includes: a plurality of standard reference condition feature sets and adaptive limiting strategies which are in one-to-one correspondence;
matching the reference condition feature set with any one of the standard reference condition feature sets to obtain a second matching degree;
and executing the adaptive limiting strategy corresponding to the standard reference condition feature set with the maximum second matching degree on the target information.
2. The SSH server-based terminal interaction method of claim 1, wherein determining whether to enter a terminal interaction limit opportunity based on the load information comprises:
acquiring a preset first characterization template;
carrying out characterization processing on the load information based on the first characterization template to obtain a load information feature set;
acquiring a preset terminal interaction limiting time to enter a determination library; the terminal interaction limit opportunity entering determination library comprises: a plurality of standard load information feature sets;
matching the load information feature set with any standard load information feature set to obtain a first matching degree;
and when the first matching degree is larger than or equal to a preset first matching degree threshold value, determining to enter terminal interaction limiting time.
3. The SSH server-based terminal interaction method as claimed in claim 1, further comprising:
acquiring terminal operation information generated in the latest preset time of the information sending terminal;
determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information;
if yes, a preset information interaction intention confirmation list making template corresponding to the information type of the target information is obtained;
creating a template based on the information interaction intention confirming list, and creating an information interaction intention confirming list according to the load information;
pushing the information interaction intention confirmation list to the information sending terminal;
temporarily permitting the target information to be transmitted when the information transmitting terminal generates a selection operation of selecting an information interaction intention from the information interaction intention confirmation list;
and updating the information interaction intention confirmation list based on the selection operation.
4. The SSH server-based terminal interaction method of claim 3, wherein determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information comprises:
carrying out characterization processing on the terminal operation information based on a preset third characterization template to obtain a terminal operation information feature set;
acquiring a preset terminal interaction temporary permission occasion and entering a determination library; the terminal interaction temporary permission occasion entering determination library comprises the following steps: a plurality of standard terminal operation information feature sets;
matching the terminal operation information feature set with any standard terminal operation information feature set to obtain a third matching degree;
and when the third matching degree is greater than or equal to a preset second matching degree threshold value, determining the temporary permission opportunity for the interaction of the access terminal.
5. A SSH server-based terminal interaction system, comprising:
the load information acquisition module is used for acquiring load information of the SSH server;
the terminal interaction limiting occasion determining module is used for determining whether to enter a terminal interaction limiting occasion or not based on the load information;
the history interaction information acquisition module is used for acquiring history interaction information between any pair of information sending terminals and information receiving terminals which log in the SSH server if the history interaction information is yes;
the consulting condition acquisition module is used for acquiring the consulting condition of the information receiving terminal on the history interaction information;
the adaptation limiting module is used for carrying out adaptation limiting on the target information sent to the information receiving terminal by the information sending terminal in the future based on the consulting condition;
the adaptation limiting module performs adaptation limiting on target information sent to the information receiving terminal by the information sending terminal in the future based on the consulting condition, and performs the following operations:
determining a consulting mode based on the consulting condition; the consulting mode comprises the following steps: sequentially consulting according to the information receiving sequence, sequentially consulting from big to small according to the information priority, and mixedly consulting;
when the consulting mode is that the information is consulted in sequence according to the information receiving sequence, extracting the information quantity which is not consulted from the consulting condition;
when the non-consulted information quantity is greater than or equal to a preset information quantity threshold, prohibiting the target information from being sent;
when the consulting mode is that the information priority is consulted in sequence from big to small, extracting the maximum priority of the consulted information from the consulting condition, and acquiring the priority of the target information;
when the priority is smaller than the maximum priority, prohibiting the target information from being sent;
when the reference mode is mixed reference, acquiring a preset second characterization extraction template;
carrying out characterization processing on the consulting situation based on the second characterization template to obtain a consulting situation feature set;
acquiring a preset adaptive restriction strategy library; the adaptive restriction policy repository includes: a plurality of standard reference condition feature sets and adaptive limiting strategies which are in one-to-one correspondence;
matching the reference condition feature set with any one of the standard reference condition feature sets to obtain a second matching degree;
and executing the adaptive limiting strategy corresponding to the standard reference condition feature set with the maximum second matching degree on the target information.
6. The SSH server-based terminal interaction system of claim 5, wherein the terminal interaction limit timing determination module determines whether to enter a terminal interaction limit timing based on the load information, and performs the following operations:
acquiring a preset first characterization template;
carrying out characterization processing on the load information based on the first characterization template to obtain a load information feature set;
acquiring a preset terminal interaction limiting time to enter a determination library; the terminal interaction limit opportunity entering determination library comprises: a plurality of standard load information feature sets;
matching the load information feature set with any standard load information feature set to obtain a first matching degree;
and when the first matching degree is larger than or equal to a preset first matching degree threshold value, determining to enter terminal interaction limiting time.
7. The SSH server-based terminal interactive system according to claim 5, further comprising:
terminal interaction temporary permission module for including:
acquiring terminal operation information generated in the latest preset time of the information sending terminal;
determining whether to enter a terminal interaction temporary permission occasion based on the terminal operation information;
if yes, a preset information interaction intention confirmation list making template corresponding to the information type of the target information is obtained;
creating a template based on the information interaction intention confirming list, and creating an information interaction intention confirming list according to the load information;
pushing the information interaction intention confirmation list to the information sending terminal;
temporarily permitting the target information to be transmitted when the information transmitting terminal generates a selection operation of selecting an information interaction intention from the information interaction intention confirmation list;
and updating the information interaction intention confirmation list based on the selection operation.
8. The SSH server-based terminal interaction system of claim 7, wherein the terminal interaction temporary permission module determines whether to enter a terminal interaction temporary permission occasion based on the terminal operation information, and performs the following operations:
carrying out characterization processing on the terminal operation information based on a preset third characterization template to obtain a terminal operation information feature set;
acquiring a preset terminal interaction temporary permission occasion and entering a determination library; the terminal interaction temporary permission occasion entering determination library comprises the following steps: a plurality of standard terminal operation information feature sets;
matching the terminal operation information feature set with any standard terminal operation information feature set to obtain a third matching degree;
and when the third matching degree is greater than or equal to a preset second matching degree threshold value, determining the temporary permission opportunity for the interaction of the access terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310048515.8A CN115801684B (en) | 2023-01-31 | 2023-01-31 | Terminal interaction method and system based on SSH server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310048515.8A CN115801684B (en) | 2023-01-31 | 2023-01-31 | Terminal interaction method and system based on SSH server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115801684A CN115801684A (en) | 2023-03-14 |
CN115801684B true CN115801684B (en) | 2023-04-21 |
Family
ID=85429405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310048515.8A Active CN115801684B (en) | 2023-01-31 | 2023-01-31 | Terminal interaction method and system based on SSH server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115801684B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107341609A (en) * | 2017-07-05 | 2017-11-10 | 广州市河东电子有限公司 | A kind of energy efficiency management system and method based on cloud platform |
CN113051078A (en) * | 2021-03-29 | 2021-06-29 | 上海商汤智能科技有限公司 | Data processing method and related device, equipment, system and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FI20011651L (en) * | 2001-08-15 | 2003-02-16 | Nokia Corp | Balancing the load of a service cluster |
CN104142862B (en) * | 2013-12-16 | 2015-09-16 | 腾讯科技(深圳)有限公司 | The overload protection method of server and device |
EP3057290A1 (en) * | 2015-02-10 | 2016-08-17 | Telefonica Digital España, S.L.U. | Method, system and device for managing congestion in network services |
CN112751851B (en) * | 2020-12-29 | 2023-05-23 | 科来网络技术股份有限公司 | SSH login success behavior judging method, device and storage medium |
-
2023
- 2023-01-31 CN CN202310048515.8A patent/CN115801684B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107341609A (en) * | 2017-07-05 | 2017-11-10 | 广州市河东电子有限公司 | A kind of energy efficiency management system and method based on cloud platform |
CN113051078A (en) * | 2021-03-29 | 2021-06-29 | 上海商汤智能科技有限公司 | Data processing method and related device, equipment, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115801684A (en) | 2023-03-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7624154B2 (en) | Apparatus and method for handling electronic mail | |
CN110855792B (en) | Message pushing method, device, equipment and medium | |
CN109617885B (en) | Attack and subsidence host automatic judgment method and device, electronic equipment and storage medium | |
CN110267214A (en) | A kind of note transmission method, server and storage medium | |
CN101039273B (en) | Communication equipment, transmission control method and transmission control program | |
CN112152759A (en) | Data transmission method, data transmission system, equipment and storage medium | |
KR100941540B1 (en) | Device management system and setting-value setting method in the system | |
EP1876851B1 (en) | User guiding system, mobile communication terminal, and user guiding method | |
CN108011805A (en) | Method, apparatus, intermediate server and the car networking system of message screening | |
CN115801684B (en) | Terminal interaction method and system based on SSH server | |
US8230025B2 (en) | System and method for delivering variable size messages based on spam probability | |
US20050047418A1 (en) | Packet receiving method of mobile terminal | |
CN114390006A (en) | Data packet transmission method, device, equipment and storage medium | |
CN112367265A (en) | Reliable data transmission method and device suitable for narrow-band weak connection network | |
US11588845B2 (en) | Method for managing a memory | |
CN115801691B (en) | Method and device for processing data packet loss and storage medium | |
CN1997984A (en) | User oriented penalty count random rejection | |
CN114189384B (en) | Service processing method, device, equipment and storage medium | |
CN110971535B (en) | Communication congestion control method, device, equipment and storage medium | |
CN114019933B (en) | Network security control method and device for industrial control system | |
CN114979250B (en) | Message pushing method, device and equipment | |
CN102075418B (en) | Network data flow control equipment and method | |
CN114090604A (en) | Request processing method and device | |
CN107222299A (en) | A kind of data transmission method, system and electronic equipment | |
CN115150465B (en) | Information processing method, device, equipment, storage medium and product |
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 |