CN114143032B - PC end mutual access system based on SSH and interaction method thereof - Google Patents

PC end mutual access system based on SSH and interaction method thereof Download PDF

Info

Publication number
CN114143032B
CN114143032B CN202111281267.9A CN202111281267A CN114143032B CN 114143032 B CN114143032 B CN 114143032B CN 202111281267 A CN202111281267 A CN 202111281267A CN 114143032 B CN114143032 B CN 114143032B
Authority
CN
China
Prior art keywords
unit
ssh
authentication
module
layer
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
CN202111281267.9A
Other languages
Chinese (zh)
Other versions
CN114143032A (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.)
Beijing Yindun Tai'an Network Technology Co ltd
Original Assignee
Beijing Yindun Tai'an Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yindun Tai'an Network Technology Co ltd filed Critical Beijing Yindun Tai'an Network Technology Co ltd
Priority to CN202111281267.9A priority Critical patent/CN114143032B/en
Publication of CN114143032A publication Critical patent/CN114143032A/en
Application granted granted Critical
Publication of CN114143032B publication Critical patent/CN114143032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/16Implementing security features at a particular protocol layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to the technical field of cross-platform interaction, in particular to a Personal Computer (PC) terminal interview system based on Secure Streaming (SSH) and an interaction method thereof, wherein the PC terminal interview system comprises a total server and a plurality of PC terminals, the total server further comprises a transmission unit, an authentication unit and a command controllable unit, the PC terminals comprise an Apache Cordova framework, a data cache expanding unit, a video monitoring unit, an online retrieval unit, an exchange sharing unit and a communication service module, and the PC terminals comprise a Win system PC terminal and an iOS system PC terminal. The invention solves the security problem of SSH server system level based on SSH network management, provides reliable security guarantee for mutual access of mobile PC terminals, and establishes communication connection through Apache Cordova frame, so that the invention can be applied to various platforms to realize cross-platform interaction, and has simple operation and high utilization rate.

Description

PC end mutual access system based on SSH and interaction method thereof
Technical Field
The invention relates to a PC end mutual access system and an interaction method thereof, in particular to a PC end mutual access system based on SSH and an interaction method thereof, belonging to the technical field of cross-platform interaction.
Background
Along with the gradual popularization of the mobile internet, applications and services of the mobile internet are rapidly developed, and functions of each large mobile platform such as Android of Google, iOS of apples and the like are continuously expanded and enriched.
Mobile equipment terminals have become indispensable products in daily life gradually, meanwhile, mobile internet applications are also being developed towards the trend of being activated and humanized, so that cross-platform interview systems among mobile terminals are becoming important in the life and social activities of people, and the interview systems are application systems integrating various technologies of hardware, software and communication, wherein the mobile terminals are used as interfaces of user operation behaviors and have rich functions of remote control, monitoring and the like.
At present, mobile terminal devices are of various brands and have different system platforms, and currently popular main mobile platform operating systems include Android, iOS, windowsPhone and the like, and native applications are respectively developed on the respective mobile operating systems, but access cannot be performed, access is only through Bluetooth, hotspots and the like, operation is troublesome, and the utilization rate is low.
Chinese patent publication No. CN 102970205A discloses a cross-platform data interaction method based on VPN, in particular to a cross-platform data interaction method based on VPN. The method mainly comprises the following steps: establishing communication connection for servers of different network systems through VPN; an ODBC database access standard interface is adopted to set interfaces for servers of different operating systems and different database platforms; and carrying out cross-platform data interaction through an interface. The method has the beneficial effects that the complexity of data interaction of different platforms is effectively reduced, the safety and the reliability of the data in the interaction process can be ensured, and the data interaction method of crossing network platforms and server platforms and crossing database platforms is realized. The method is particularly suitable for a cross-platform data interaction system, and currently mainly comprises the mobile terminals, so that the problem of cross-platform mutual access among different mobile terminals cannot be met.
Therefore, there is a need for an improvement in the PC-side interview system to solve the above-mentioned problems.
Disclosure of Invention
The invention aims to provide an SSH-based PC end interview system and an interaction method thereof, and the SSH-based management solves the security problem of an SSH server system level, provides reliable security guarantee for interview of mobile PC ends, and establishes communication connection through an Apache Cordova framework for a plurality of PC ends, so that the system can be applied to various platforms to realize cross-platform interaction, and is simple to operate and high in utilization rate.
In order to achieve the above purpose, the main technical scheme adopted by the invention comprises the following steps:
the PC end mutual access system based on SSH comprises a total server, a plurality of PC ends which are connected with the total server in a wireless way, a transmission unit, an authentication unit and a command controllable unit, wherein the total server is connected with the total server in a wireless way;
the command controllable unit is used for capturing an operation command used by the PC end and judging and processing the operation command;
the PC end sends an authentication request to the total server through the transmission unit and carries an authentication number;
the total server receives the number of the PC end and transmits information to an authentication unit, and the authentication unit authenticates the number;
through the technical scheme, the PC end sends an authentication request to the total server, wherein the carried authentication number is 010;
the total server receives an authentication request with the authentication number of 010, authenticates through the authentication unit and replies authentication information, wherein the authentication information carries an authentication mode list which is supported by the total server and needs to be completed by another PC end;
the other PC end sends a certain authentication mode from the total server, and the total server receives the authentication request of the other PC end, verifies the authentication information of the other PC end and judges the authentication information;
the total server decides whether to need continuous authentication of the PC end according to the configuration of the two PC ends, and specifically comprises the following cases:
if the authentication mode 010 is successful in authentication, and the PC end does not need to continuously finish other authentications, the total server replies authentication success information, and the authentication process is smoothly finished;
if the authentication mode fails, the authentication mode of the PC end is changed to 011, if the authentication times reach the maximum value of the authentication times, the authentication of the PC end fails, the total server and the PC end are disconnected, and the system is safe to use;
the PC end comprises an Apache Cordova framework, a data cache expansion unit, a video monitoring unit, an online retrieval unit, an communication sharing unit and a communication service module;
the general server and the PC end are supported by an Apache Cordova framework, wherein the Apache Cordova framework comprises a Web layer, a Cordova layer and a Native adaptation layer;
the Web layer is used for providing the function logic of the upper layer;
the Cordova layer is used to provide middle layer functional logic;
the Native adaptation layer is used for providing bottom layer function support;
through the technical scheme, the UI and page logic part of the Web layer, the adaptation module of each platform on the basis of the Cordova layer and the runtime environment of each platform are packaged by the extension module, the cross-platform compiling and standard Web technology advantages of the Apache Cordova frame are utilized, so that the development and maintenance cost of main logic of the upper layer can be reduced, the extension cost of the platform is reduced and the flexibility of function extension is increased while the application function requirement is met;
the PC terminal comprises a Win system PC terminal and an iOS system PC terminal;
the data cache expansion unit comprises a data cache adaptation module, and the data cache adaptation module is used for realizing adaptation between a PC end of the Win system and a PC end of the iOS system;
through the technical scheme, in the adaptation of the PC end of the Win system, the connection between the PC end and the server is established based on the TCP channel, the push from the total server is received at any time, the maintenance of TCP long connection is realized based on the Service component, and the Android Service mainly comprises the following key components:
a TransClient object for maintaining network connections and message communications, logic for handling all network communications;
a Handler object for handling message notification handling between multiple threads;
the AlarmManager object registers Android clock management, starts a system broadcast when the timing of the object is triggered, and uses broadcast reception to do timing tasks;
for the Android server program, services which are realized in different modes and are oriented to TCP connection processing can be accessed;
and the pushing processing of the message is carried out on the basis of the connection between the APNS and the iOS equipment in the PC end of the iOS system, and the specific message is pulled from the third-party server when the user interaction occurs.
In the iOS, the implementation of the pushing technology is different from that of Android, notification is pushed to the equipment by the Token bound with the user through APNS of Apple, and after cross-platform interaction of the user, information connection is established with the total server;
the PC end of the Win system and the PC end of the iOS system are constructed on the basis of the Apache Cordova framework, so that the connection between the android mobile phone and the apple mobile phone can be realized, and the mutual access interaction of the PC ends can be realized.
The overall server comprises a visual element which,
the visual unit and the command controllable unit are in communication connection and are used for realizing the real-time monitoring function of the SSH service;
through the technical scheme, the visual unit is used for providing access of the visual component, including accessing the third-party video monitoring SDK, and the upper Web layer can realize the video monitoring function by using Javascript call, so that the system can be conveniently protected, and the safety of the system is improved.
The communication service module establishes communication connection with the PC end in a wireless mode, is used for maintaining login information and assisting communication connection among a plurality of PC ends, and is used for realizing adaptation of the PC end of the Win system and the PC end of the iOS system;
through the technical scheme, in the implementation of the communication service module, different adaptations are carried out according to message pushing mechanisms of different platforms, for example, the keep-alive of a communication link is carried out in Android in a TCP long connection mode, and the iOS itself has the APNS pushing mechanism guarantee of apples, so that the keep-alive of the pushing link is carried out by an iOS system.
The data cache adaptation module is used for providing file reading and writing and database reading and writing functions for the Web layer, reading and writing and storage of data can be carried out between the two mobile phones, a cross-platform mutual access system is truly realized, the two mobile phones can be two android, two apples or one apple and one android, and the application range of the system is improved.
The video monitoring unit comprises a video monitoring adapting module, and the video monitoring adapting module is used for realizing the adaptation between the PC end of the Win system and the PC end of the iOS system;
the video monitoring adaptation module is used for providing video monitoring expansion module call for the Web layer, accessing a third-party video monitoring file on the Native adaptation layer, and calling the video monitoring unit by the Web layer through the Native adaptation layer;
the video monitoring unit is used for authentication, so that the use safety of the system is improved.
The online searching unit comprises an online searching module and a downloading module, and is used for linking the PC end, acquiring the searching result online and downloading the searching result into the local folder through the downloading module;
the communication sharing unit is used for realizing the online communication of multiple people through a built-in instant messaging tool based on the UDP protocol and realizing file transmission by utilizing the TCP protocol;
through the technical scheme, one mobile phone can search the other mobile phone, and after searching the content, the file of the PC end of the other party can be directly downloaded and stored, so that the use range and the flexibility of the system are improved.
The main logic modules of the Web layer include: based on a UI interface and functional logic of HTML, CSS, javascript and jQueryMobile technology, calling the functions of the Apache Cordova framework through a Native adaptation layer;
through the technical scheme, in order to realize main functions of cross-platform interview, UI interfaces and the like, HTML, CSS and jQueryMobile in a Web layer realize upper functional logic and UI interfaces, cross-platform interview system application with friendly interface and rich functions can be constructed, and the purpose of cross-mobile platform interview is achieved.
An interaction method of a PC end mutual access system based on SSH comprises the following steps:
step one: the PC end (2) sends an authentication request through the total server (1);
Figure BDA0003331060350000061
wherein C represents an authentication request, y i Represents the ith PC end node, h represents the overall serviceAuthentication channel, PW, of server i Representing authentication keys of the i-th PC end node and the total server, i=1, 2, n, n representing the total number of PC end nodes, R representing an initial key between the PC end node and the total server, f i Representing request data sent by the ith PC end node to the overall server, p represents an overflow value for data generated by the authentication key through the authentication channel, N 1 Representing the time stamp of the total server, y' representing the PC end node without the key;
step two: the PC end (2) receives the authentication information and sends the authentication information to a preset authentication unit, the authentication unit verifies the authentication information through a preset verification mechanism, a verification equation is constructed, and a verification result is determined;
Figure BDA0003331060350000062
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure BDA0003331060350000063
t represents the verification result of the authentication request based on the verification mechanism h Represents a preset time threshold value in an authentication channel of a total server, Δd represents a verification time difference of the server, and X S A verification mechanism preset in an s-th authentication channel of the total server, wherein s represents the s-th authentication channel;
step three: the command controllable unit (5) judges and processes the verification result, and an Apache Cordova framework (6) on the total server (1) establishes corresponding interfaces for different Win system PC ends (12) and the iOS system PC ends (13);
step four: and carrying out cross-platform data interaction among the plurality of PC ends (2) through an Apache Cordova framework (6).
The invention has at least the following beneficial effects:
1. the management based on the SSH network solves the security problem of the SSH server system level, provides reliable security guarantee for mutual access of the mobile PC terminals, establishes communication connection through the Apache Cordova framework, can be applied to various platforms, realizes cross-platform interaction, and is simple to operate and high in utilization rate.
2. The UI and page logic part of the Web layer, the packaging of each expansion module of the Cordova layer, the adaptation module of each platform on the basis of the Cordova layer and the runtime environment of each platform are formed by the parts, so that the cross-platform compiling and standard Web technology advantages of the Apache Cordova frame are utilized, the development and maintenance cost of main logic of the upper layer can be reduced, the expansion cost of the platform is reduced, and the flexibility of function expansion is increased while the application function requirement is met.
3. The method comprises the steps that an authentication request is sent to a total server through a plurality of PC ends, the security of cross-platform interaction between the PC ends and the total server is improved through an initial key and authentication keys between different PC ends and the total server, cross-platform interaction is achieved, the security of cross-platform information interaction is improved, and confidentiality of cross-platform information interaction is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a general architecture diagram of the present invention;
FIG. 2 is a flow chart of the method of the present invention;
FIG. 3 is a schematic diagram of the PC end of the present invention;
FIG. 4 is a schematic diagram of an Apache Cordova framework of the present invention.
In the figure, a 1-total server, a 2-PC end, a 3-transmission unit, a 4-authentication unit, a 5-command controllable unit, a 6-Apache Cordova framework, a 601-Web layer, a 602-Cordova layer, a 603-Native adaptation layer, a 7-data cache expansion unit, a 701-data cache adaptation module, an 8-video monitoring unit, a 801-video monitoring adaptation module, a 9-online retrieval unit, a 901-online retrieval module, a 902-downloading module, a 10-alternating current sharing unit, a 11-communication service module, a 12-Win system PC end, a 13-iOS system PC end and a 14-visual unit.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the accompanying drawings and examples, so that the implementation process of how the technical means are applied to solve the technical problems and achieve the technical effects of the present application can be fully understood and implemented accordingly.
As shown in fig. 1 to fig. 4, the SSH-based PC-side interview system and the interaction method thereof provided in the present embodiment include a total server 1 and a plurality of PC sides 2 wirelessly connected to the total server 1, where the total server 1 further includes a transmission unit 3, an authentication unit 4, and a command controllable unit 5;
the command controllable unit 5 is used for capturing an operation command used by the PC terminal 2 and judging the operation command;
the PC end 2 sends an authentication request to the total server 1 through the transmission unit 3 and carries an authentication number;
the total server 1 receives the number of the PC terminal 2 and transmits information to the authentication unit 4, and the authentication unit 4 authenticates the number;
the PC end 2 sends an authentication request to the total server 1, wherein the carried authentication number is 010;
the total server 1 receives the authentication request with the authentication number of 010, performs authentication through the authentication unit 4 and replies authentication information, wherein the authentication information carries an authentication mode list which is supported by the total server 1 and needs to be completed by the other PC end 2;
the other PC end 2 sends a certain authentication mode from the total server 1, the total server 1 receives the authentication request of the other PC end 2, verifies the authentication information of the other PC end 2, and judges through 5;
the total server 1 decides whether to need to continuously authenticate the PC end 2 according to the configuration of the two PC ends 2, and specifically includes the following cases:
if the authentication mode 010 is successful in authentication and the PC end 2 does not need to continuously finish other authentications, the total server 1 replies authentication success information, and the authentication process is smoothly finished;
if the authentication mode fails, the authentication mode of the PC end 2 is changed to 011, and if the number of times of authentication reaches the maximum value of the number of times of authentication, the authentication of the PC end 2 fails, the total server 1 and the PC end 2 are disconnected, and the system is safe to use;
the PC end 2 comprises an Apache Cordova framework 6, a data cache expansion unit 7, a video monitoring unit 8, an online retrieval unit 9, an communication sharing unit 10 and a communication service module 11;
the total server 1 and the PC terminal 2 are supported by an Apache Cordova framework 6, and the Apache Cordova framework 6 comprises a Web layer 601, a Cordova layer 602 and a Native adaptation layer 603;
the Web layer 601 is used to provide the functional logic of the upper layer;
cordova layer 602 is used to provide middle layer functional logic;
native adaptation layer 603 is used to provide underlying functional support;
the UI and page logic part of the Web layer 601, the packaging of each expansion module of the Cordova layer 602, the adaptation module of each platform on the basis of the Cordova layer 602 and the runtime environment of each platform form a cross-access platform based on the Apache Cordova framework 6, and the advantages of cross-platform compiling and standard Web technology of the Apache Cordova framework 6 are utilized, so that the development and maintenance cost of upper-layer main logic can be reduced, the expansion cost of the platform can be reduced and the flexibility of function expansion can be increased while the application function requirement is met;
the PC terminal 2 comprises a Win system PC terminal 12 and an iOS system PC terminal 13;
the data cache expansion unit 7 comprises a data cache adaptation module 701, wherein the data cache adaptation module 701 is used for realizing the adaptation of the Win system PC end 12 and the iOS system PC end 13;
in the adaptation of the PC end 12 of the Win system, the connection between the PC end and the server is established based on a TCP channel, the push from the total server 1 is received at any time, the maintenance of the TCP long connection is realized based on a Service component, and the Android Service mainly comprises the following key components:
a TransClient object for maintaining network connections and message communications, logic for handling all network communications;
a Handler object for handling message notification handling between multiple threads;
the AlarmManager object registers Android clock management, starts a system broadcast when the timing of the object is triggered, and uses broadcast reception to do timing tasks;
for the Android server program, services which are realized in different modes and are oriented to TCP connection processing can be accessed;
in the iOS system PC 13, the pushing process of the message is performed based on the connection between the apps and the iOS device, and when the user interaction occurs, a specific message is pulled from the third party server.
In the iOS, the implementation of the pushing technology is different from that of Android, notification is pushed to the equipment by the Token bound with the user through APNS of Apple, and after cross-platform interaction of the user, information connection is established with the total server 1;
the PC end 12 of the Win system and the PC end 13 of the iOS system are constructed on the basis of the Apache Cordova framework 6, so that connection between an android mobile phone and an apple mobile phone can be realized, and mutual access interaction of the PC ends can be realized.
The overall server 1 comprises a visual element 14,
the visual unit 14 is in communication connection with the command controllable unit 5, and the visual unit 14 and the command controllable unit 5 are used for realizing the real-time monitoring function of SSH service;
the visual unit 14 is used for providing access to visual components, including accessing to a third party video monitoring SDK, and the upper Web layer 601 can use Javascript to implement a video monitoring function, so as to protect the system and improve the security of the system.
The communication service module 11 establishes communication connection with the PC terminals 2 in a wireless mode, and the communication service module 11 is used for maintaining login information and assisting communication connection among the plurality of PC terminals 2 and is used for realizing adaptation of the PC terminals 12 of the Win system and the PC terminals 13 of the iOS system;
in the implementation of the communication service module 11, different adaptations are performed according to message pushing mechanisms of different platforms, for example, in Android, a TCP long connection mode is adopted to keep alive a communication link, and iOS itself has an apple APNS pushing mechanism guarantee, so that the keep alive of the pushing link is only needed to be delivered to the iOS system.
The data cache adaptation module 701 is used for providing file reading and writing and database reading and writing functions for the Web layer, reading and writing and storing of data can be performed between two mobile phones, a cross-platform mutual access system is truly realized, the two mobile phones can be two android, two apples or one apple and one android, and the application range of the system is improved.
The video monitoring unit 8 comprises a video monitoring adapting module 801, and the video monitoring adapting module 801 is used for adapting the PC end 12 of the Win system to the PC end 13 of the iOS system;
the video monitoring adaptation module 801 is configured to provide a video monitoring expansion module call for the Web layer 601, access a third party video monitoring file on the Native adaptation layer 603, and call the video monitoring unit 8 through the Native adaptation layer 603 by the Web layer 601;
the video monitoring unit 8 is used for authentication, so that the use safety of the system is improved.
The online searching unit 9 comprises an online searching module 901 and a downloading module 902, and is used for linking the PC end 2, acquiring a searching result online and downloading the searching result into a local folder through the downloading module 902;
the communication sharing unit 10 is used for realizing online communication of multiple people through a built-in instant messaging tool based on a UDP protocol, and realizing file transmission by utilizing the TCP protocol;
the other mobile phone can be searched through one mobile phone, and the file of the PC end 2 of the other party can be directly downloaded and stored after the content is searched, so that the use range and the flexibility of the system are improved.
The main logic modules of Web layer 601 include: based on a UI interface and functional logic of HTML, CSS, javascript and jQueryMobile technology, calling the functions of the Apache Cordova framework 6 through a Native adaptation layer 603;
in order to realize main functions, UI interfaces and the like of cross-platform interview, HTML, CSS and jQueryMobile in the Web layer 601 realize upper functional logic and UI interfaces, cross-platform interview system application with friendly interface and rich functions can be constructed, and the purpose of cross-mobile platform interview is achieved.
As shown in fig. 1 to 4, the interaction method of the PC-side interview system based on SSH provided in this embodiment includes the following steps:
step one: the PC end sends an authentication request through the total server;
Figure BDA0003331060350000111
wherein C represents an authentication request, y i Representing the ith PC end node, h representing the authentication channel of the total server, PW i Representing authentication keys of the i-th PC end node and the total server, i=1, 2, n, n representing the total number of PC end nodes, R representing an initial key between the PC end node and the total server, f i Representing request data sent by the ith PC end node to the overall server, p represents an overflow value for data generated by the authentication key through the authentication channel, N 1 Representing the time stamp of the total server, y' representing the PC end node without the key;
step two: the PC receives the authentication information and sends the authentication information to a preset authentication unit, the authentication unit verifies the authentication information through a preset verification mechanism, a verification equation is constructed, and a verification result is determined;
Figure BDA0003331060350000121
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure BDA0003331060350000122
t represents the verification result of the authentication request based on the verification mechanism h Represents a preset time threshold value in an authentication channel of a total server, Δd represents a verification time difference of the server, and X s A verification mechanism preset in an s-th authentication channel of the total server, wherein s represents the s-th authentication channel;
step three: the command controllable unit judges and processes the verification result, and an Apache Cordova framework on the total server establishes corresponding interfaces for different Win system PC ends and the iOS system PC ends;
step four: and carrying out cross-platform data interaction among the plurality of PC terminals through an Apache Cordova framework.
Through different verification channels, the speed and the accuracy of data transmission are improved, and through a channel verification mechanism, encryption verification is carried out on data, so that the safety of data transmission is improved.
Certain terms are used throughout the description and claims to refer to particular components. Those of skill in the art will appreciate that a hardware manufacturer may refer to the same component by different names. The description and claims do not take the form of an element differentiated by name, but rather by functionality. As used throughout the specification and claims, the word "comprise" is an open-ended term, and thus should be interpreted to mean "include, but not limited to. By "substantially" is meant that within an acceptable error range, a person skilled in the art can solve the technical problem within a certain error range, substantially achieving the technical effect.
It should be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude that an additional identical element is present in a commodity or system comprising the element.
While the foregoing description illustrates and describes the preferred embodiments of the present invention, it is to be understood that the invention is not limited to the forms disclosed herein, but is not to be construed as limited to other embodiments, and is capable of numerous other combinations, modifications and environments and is capable of changes or modifications within the scope of the inventive concept as described herein, either as a result of the foregoing teachings or as a result of the knowledge or technology in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (10)

1. The PC end interview system based on SSH comprises a total server (1) and a plurality of PC ends (2) which are connected with the total server (1) in a wireless way, and is characterized in that the total server (1) further comprises a transmission unit (3), an authentication unit (4) and a command controllable unit (5);
the command controllable unit (5) is used for capturing an operation command used by the PC end (2) and judging and processing the operation command;
the PC end (2) sends an authentication request to the total server (1) through the transmission unit (3) and carries an authentication number;
the total server (1) receives the serial number of the PC end (2) and transmits information to the authentication unit (4), and the authentication unit (4) authenticates the serial number;
the PC end (2) comprises an Apache Cordova framework (6), a data cache expanding unit (7), a video monitoring unit (8), an online searching unit (9), an alternating current sharing unit (10) and a communication service module (11);
the total server (1) and the PC end (2) are supported by the Apache Cordova framework (6), and the Apache Cordova framework (6) comprises a Web layer (601), a Cordova layer (602) and a Native adaptation layer (603);
the PC end (2) comprises a Win system PC end (12) and an iOS system PC end (13);
the data cache expansion unit (7) comprises a data cache adaptation module (701), and the data cache adaptation module (701) is used for realizing adaptation of the Win system PC end (12) and the iOS system PC end (13).
2. The SSH-based PC-side interview system of claim 1 wherein: the overall server (1) comprises a visual unit (14),
the visual unit (14) is in communication connection with the command controllable unit (5), and the visual unit (14) and the command controllable unit (5) are used for realizing the real-time monitoring function of the SSH service.
3. The SSH-based PC-side interview system of claim 1 wherein: the communication service module (11) establishes communication connection with the PC end (2) in a wireless mode, and the communication service module (11) is used for maintaining login information and assisting communication connection among a plurality of PC ends (2) and is used for realizing adaptation of the Win system PC end (12) and the iOS system PC end (13).
4. The SSH-based PC-side interview system of claim 1 wherein:
the Web layer (601) is used for providing upper-layer functional logic;
the Cordova layer (602) is for providing middle layer functional logic;
the Native adaptation layer (603) is used to provide underlying functional support.
5. The SSH-based PC-side interview system of claim 1 wherein: the data cache adaptation module (701) is used for providing file reading and writing and database reading and writing functions for the Web layer.
6. The SSH-based PC-side interview system of claim 1 wherein: the video monitoring unit (8) comprises a video monitoring adapting module (801), and the video monitoring adapting module (801) is used for realizing the adaptation between the Win system PC end (12) and the iOS system PC end (13);
the video monitoring adaptation module (801) is configured to provide a video monitoring expansion module call for the Web layer (601), and access a third party video monitoring file on the Native adaptation layer (603), where the Web layer (601) calls the video monitoring unit (8) through the Native adaptation layer (603).
7. The SSH-based PC-side interview system of claim 1 wherein: the online searching unit (9) comprises an online searching module (901) and a downloading module (902) which are used for linking the PC end (2), acquiring searching results online and downloading the searching results into a local folder through the downloading module (902).
8. The SSH-based PC-side interview system of claim 1 wherein: the communication sharing unit (10) is used for realizing multi-user online communication through a built-in UDP-based instant messaging tool and realizing file transmission by utilizing a TCP protocol.
9. The SSH-based PC-side interview system of claim 1 wherein: the main logic modules of the Web layer (601) include: and based on a UI interface and functional logic of HTML, CSS, javascript and jQueryMobile technology, calling the functions of the Apache Cordova framework (6) through the Native adaptation layer (603).
10. An interaction method of a PC end mutual access system based on SSH, which is applied to the PC end mutual access system based on SSH as in any one of claims 1 to 9, is characterized in that: the method comprises the following steps:
step one: the PC end (2) sends an authentication request through the total server (1);
step two: the PC end (2) receives the authentication information and sends the authentication information to a preset authentication unit, the authentication unit verifies the authentication information through a preset verification mechanism, a verification equation is constructed, and a verification result is determined;
step three: the command controllable unit (5) judges and processes the verification result, and an Apache Cordova framework (6) on the total server (1) establishes corresponding interfaces for different Win system PC ends (12) and iOS system PC ends (13);
step four: and carrying out cross-platform data interaction among the plurality of PC ends (2) through an Apache Cordova framework (6).
CN202111281267.9A 2021-11-01 2021-11-01 PC end mutual access system based on SSH and interaction method thereof Active CN114143032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111281267.9A CN114143032B (en) 2021-11-01 2021-11-01 PC end mutual access system based on SSH and interaction method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111281267.9A CN114143032B (en) 2021-11-01 2021-11-01 PC end mutual access system based on SSH and interaction method thereof

Publications (2)

Publication Number Publication Date
CN114143032A CN114143032A (en) 2022-03-04
CN114143032B true CN114143032B (en) 2023-07-07

Family

ID=80391964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111281267.9A Active CN114143032B (en) 2021-11-01 2021-11-01 PC end mutual access system based on SSH and interaction method thereof

Country Status (1)

Country Link
CN (1) CN114143032B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333068A (en) * 2011-03-18 2012-01-25 北京神州数码思特奇信息技术股份有限公司 SSH and SFTP (Secure Shell and Ssh File Transfer Protocol)-based tunnel intelligent management and control system and method
CN102521099A (en) * 2011-11-24 2012-06-27 深圳市同洲视讯传媒有限公司 Process monitoring method and process monitoring system
KR20120097211A (en) * 2011-02-24 2012-09-03 주식회사 케이티 Apparatus of executing services provided in different operation environments in different terminals
CN102970205A (en) * 2012-12-07 2013-03-13 四川长虹电器股份有限公司 Cross-platform data interaction method based on virtual private network (VPN)
CN104243210A (en) * 2014-09-17 2014-12-24 湖北盛天网络技术股份有限公司 Method and system for remotely having access to administrative web pages of routers
CN105045573A (en) * 2015-06-24 2015-11-11 国电南京自动化股份有限公司 Photovoltaic power plant monitoring and commissioning software building method based on WEB screen-crossing technology
CN105573129A (en) * 2015-11-10 2016-05-11 华南理工大学 Cordova-based cross-platform smart home mobile terminal
CN106685726A (en) * 2017-01-11 2017-05-17 重庆邮电大学 React-native based intelligent home monitoring system
CN107479906A (en) * 2017-09-28 2017-12-15 电子科技大学 cross-platform online education mobile terminal based on Cordova

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120097211A (en) * 2011-02-24 2012-09-03 주식회사 케이티 Apparatus of executing services provided in different operation environments in different terminals
CN102333068A (en) * 2011-03-18 2012-01-25 北京神州数码思特奇信息技术股份有限公司 SSH and SFTP (Secure Shell and Ssh File Transfer Protocol)-based tunnel intelligent management and control system and method
CN102521099A (en) * 2011-11-24 2012-06-27 深圳市同洲视讯传媒有限公司 Process monitoring method and process monitoring system
CN102970205A (en) * 2012-12-07 2013-03-13 四川长虹电器股份有限公司 Cross-platform data interaction method based on virtual private network (VPN)
CN104243210A (en) * 2014-09-17 2014-12-24 湖北盛天网络技术股份有限公司 Method and system for remotely having access to administrative web pages of routers
CN105045573A (en) * 2015-06-24 2015-11-11 国电南京自动化股份有限公司 Photovoltaic power plant monitoring and commissioning software building method based on WEB screen-crossing technology
CN105573129A (en) * 2015-11-10 2016-05-11 华南理工大学 Cordova-based cross-platform smart home mobile terminal
CN106685726A (en) * 2017-01-11 2017-05-17 重庆邮电大学 React-native based intelligent home monitoring system
CN107479906A (en) * 2017-09-28 2017-12-15 电子科技大学 cross-platform online education mobile terminal based on Cordova

Also Published As

Publication number Publication date
CN114143032A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US7882244B2 (en) Method and system for facilitating group organization using mobile devices
US20150319173A1 (en) Co-verification method, two dimensional code generation method, and device and system therefor
US8036598B1 (en) Peer-to-peer transfer of files with back-office completion
CN101911064A (en) Methods and apparatus for implementing distributed multi-modal applications
US20150296027A1 (en) Continuous Browsing Across Devices
CN103167031A (en) Communication between Web applications
US10694381B1 (en) System and method for authentication and sharing of subscriber data
CN108347464A (en) Operating status synchronous method, system and the electronic equipment of application program
JP2013520745A (en) Agentless follow-me service for cloud-based applications
KR20190069574A (en) Wireless network type detection method and apparatus, and electronic device
CN111867000A (en) Equipment network distribution method and device and computer readable storage medium
CN112954717B (en) Household appliance network distribution method and device based on H5 page
WO2002047309A2 (en) Wearable data device for use in a wearable data network
WO2013006155A1 (en) Providing access to information
US20140157104A1 (en) Dynamic sharing and updating of a web page
CN114143032B (en) PC end mutual access system based on SSH and interaction method thereof
US8316456B2 (en) System and method for representing a secure time in a device based upon an insecure clock
CN103369533A (en) Antitheft method and antitheft device of mobile terminal
CN104202432A (en) Remote web management system and method
US11487910B2 (en) Terminal and communication method
CN113873450A (en) Short message configuration method and device, computer equipment and storage medium
CN103457980A (en) Terminal device and data acquisition method
CN115052195B (en) Remote input method, device, equipment and storage medium
CN113312571B (en) Page management method and device, computer equipment and storage medium
CN104683419A (en) Communicating method and system based on android system and m2m (machine to machine)

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