CN114143032A - SSH-based PC (personal computer) end mutual access system and interaction method thereof - Google Patents

SSH-based PC (personal computer) end mutual access system and interaction method thereof Download PDF

Info

Publication number
CN114143032A
CN114143032A CN202111281267.9A CN202111281267A CN114143032A CN 114143032 A CN114143032 A CN 114143032A CN 202111281267 A CN202111281267 A CN 202111281267A CN 114143032 A CN114143032 A CN 114143032A
Authority
CN
China
Prior art keywords
unit
authentication
ssh
layer
adaptation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111281267.9A
Other languages
Chinese (zh)
Other versions
CN114143032B (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)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of cross-platform interaction, in particular to a PC (personal computer) end mutual access system based on SSH (secure Shell) and an interaction method thereof. The invention solves the security problem of the SSH server system level based on the management of the SSH network, provides reliable security guarantee for the mutual access of the mobile PC ends, and a plurality of mobile PC ends establish communication connection through an Apache Cordova framework, so that the invention can be applied to various platforms, realizes the cross-platform interaction, and has simple operation and high utilization rate.

Description

SSH-based PC (personal computer) end mutual access system and interaction method thereof
Technical Field
The invention relates to a PC (personal computer) end mutual access system and an interaction method thereof, in particular to a PC end mutual access system based on SSH (secure Shell) and an interaction method thereof, belonging to the technical field of cross-platform interaction.
Background
With the gradual popularization of the mobile internet and the rapid development of applications and services for the mobile internet, various large mobile platforms such as the Android of Google and the iOS of apple continuously expand and enrich the functions of the mobile platforms.
The mobile device terminal has gradually become an indispensable product in daily life, and meanwhile, the mobile internet application is developing towards the trend of life activation and humanization, and gradually permeates the life and social contact of people, a cross-platform mutual access system between mobile terminals is also becoming more important, the mutual access system is an application system integrating hardware, software and communication technologies in various aspects, wherein the mobile terminal is used as an interface of user operation behaviors and has rich functions of remote control, monitoring and the like.
Currently, mobile terminal devices have various brands and different system platforms, and currently popular mainstream mobile platform operating systems include Android, iOS, windows phone, and the like, and native applications are developed on respective mobile operating systems respectively, but mutual access cannot be performed, access is only performed through bluetooth, a hot spot, and the like, so that operation is troublesome, and the utilization rate is low.
The chinese patent publication No. CN 102970205 a discloses a "cross-platform data interaction method based on VPN", and particularly relates 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; adopting an ODBC database access standard interface to set interfaces for servers of different operating systems and different database platforms; and performing cross-platform data interaction through the interface. The invention has the advantages of effectively reducing the complexity of data interaction of different platforms, ensuring the safety and reliability of data in the interaction process and realizing the data interaction method of cross-network platform, cross-server platform and cross-database platform. The invention is particularly suitable for a cross-platform data interaction system, and the problem of cross-platform mutual access between different mobile terminals cannot be met because the current mainstream mobile terminals.
Therefore, there is a need for an improved PC-side mutual access system to solve the above existing problems.
Disclosure of Invention
The invention aims to provide a PC (personal computer) end mutual access system based on SSH (secure Shell) and an interaction method thereof, which solve the security problem of an SSH server system level based on the management of an SSH network, provide reliable security guarantee for the mutual access of mobile PC ends, and establish communication connection by a plurality of PC ends through an Apache Cordova framework, 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 purpose, the invention adopts the main technical scheme that:
a PC end mutual access system based on SSH comprises a main server and a plurality of PC ends which are in wireless connection with the main server, wherein the main server also comprises a transmission unit, an authentication unit and a command controllable unit;
the command controllable unit is used for capturing an operation command used by the PC terminal and judging and processing the operation command;
the PC terminal sends an authentication request to the main server through the transmission unit and carries an authentication number;
the main server receives the serial number of the PC end and transmits the information to the authentication unit, and the authentication unit authenticates the serial number;
through the technical scheme, the PC terminal sends an authentication request to the main server, wherein the carried authentication number is 010;
the main server receives the 010 authentication request with the authentication number, authenticates through the authentication unit and replies authentication information, wherein the authentication information carries an authentication mode list which is supported by the main server and needs to be completed by another PC terminal;
the other PC end sends a certain authentication mode from the main server, and the main server receives an authentication request of the other PC end, verifies the authentication information of the other PC end and judges the authentication information;
the main server determines whether to need to continue authentication of the PC end according to the configuration of the two PC ends, and the specific method includes the following cases:
if the authentication mode 010 succeeds in authentication and the PC does not need to continue to complete other authentications, the master server replies an authentication success message, and the authentication process is completed smoothly;
if the authentication of 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 main server and the PC end are disconnected, and the system is safe to use;
the PC end comprises an Apache cordia framework, a data cache expanding unit, a video monitoring unit, an online retrieval unit, an exchange sharing unit and a communication service module;
the general server and the PC end are supported through an Apache Cordova framework, and the Apache Cordova framework comprises a Web layer, a Cordova layer and a Native adaptation layer;
the Web layer is used for providing functional logic of an upper layer;
the Cordova layer is used for providing middle-layer functional logic;
the Native adaptation layer is used for providing bottom layer functional support;
through the technical scheme, UI and page logic parts of a Web layer, extension module encapsulation of a Cordova layer, adaptation modules of platforms based on the Cordova layer and runtime environments of the platforms are formed by the extension modules, a mutual access platform is constructed based on an Apache Cordova framework, cross-platform compilation of the Apache Cordova framework and advantages of a standard Web technology are utilized, development and maintenance cost of main logic of an upper layer can be reduced while application function requirements are met, extension cost of the platforms is reduced, and flexibility of function extension is improved;
the PC end comprises a Win system PC end and an iOS system PC end;
the data cache expansion unit comprises a data cache adaptation module, and the data cache adaptation module is used for realizing the adaptation of a PC end of a Win system and a PC end of an iOS system;
through the technical scheme, in the adaptation of the PC end of the Win system, the connection with the server is established based on the TCP channel, the pushing from the main server is received at any time, the maintenance of the long connection of the TCP is realized based on the Service component, and the Android Service mainly comprises the following key components:
the Transclient object is used for maintaining network connection and message communication and processing all logic of network communication;
a Handler object for handling message notification processing among multiple threads;
the method comprises the following steps that an AlarmManager object registers Android clock management, starts a system broadcast when the object is triggered by timing, and uses broadcast reception to perform a timing task;
for Android server programs, services for TCP connection processing realized in different modes can be accessed;
in the iOS system PC side, the pushing processing of the message is carried out based on the connection between the APNS and the iOS device, and the specific message is pulled from the third-party server when the user interaction occurs.
In the iOS, the implementation of a push technology is different from that of Android, a notification is pushed to equipment by Token bound with a user through the APNS of Apple, and after cross-platform interaction of a user, information connection is established with a master server;
the PC end of a Win system and the PC end of an iOS system are constructed on the basis of an Apache cordiva framework, so that the connection between an android mobile phone and an apple mobile phone can be realized, and the interaction of the PC ends can be realized.
The overall server includes a visual element that is,
the visual unit and the command controllable unit 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, and comprises accessing to a third-party video monitoring SDK, the Web layer on the upper layer can utilize Javascript to call to realize a video monitoring function, so that the system is protected conveniently, 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 login information maintenance and assisting communication connection among the 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 performed according to message push mechanisms of different platforms, for example, the keep-alive of a communication link is performed in an Android by adopting a TCP long connection mode, and the iOS has apple APNS push mechanism guarantee, so that the push link keep-alive can be delivered to an iOS system.
Data cache adaptation module is used for providing file reading and writing and database reading and writing function to the Web layer, can carry out the reading and writing and the storage of data between two cell-phones, really realizes the system of visiting each other across the platform, and two cell-phones can be for two ann shang zhu, two apples or an apple and an ann zhu, promote the application range of this system.
The video monitoring unit comprises a video monitoring adaptive module, and the video monitoring adaptive module is used for realizing the adaptation of a PC end of a Win system and a PC end of an iOS system;
the video monitoring adaptation module is used for providing calling of the video monitoring extension module 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, and the use safety of the system is improved.
The online retrieval unit comprises an online retrieval module and a downloading module, and is used for linking the PC terminal, acquiring the retrieval result online and downloading the retrieval result into the local folder through the downloading module;
the communication sharing unit is used for realizing multi-user online communication through a built-in instant messaging tool based on a UDP protocol and realizing file transmission by utilizing a TCP protocol;
through the technical scheme, one mobile phone can search the other mobile phone, and the file of the PC end of the other mobile phone can be directly downloaded and stored after the content is searched, so that the use range and flexibility of the system are improved.
The main logic modules of the Web layer include: based on the UI interface and the functional logic of HTML, CSS, Javascript and jQueryMobile technologies, and calling the function of an Apache Cordova framework through a Native adaptation layer;
through the technical scheme, in order to realize main functions, UI interfaces and the like of cross-platform mutual access, the HTML, the CSS and the jQueryMobile in the Web layer realize functional logic and the UI interfaces of the upper layer, so that cross-platform mutual access system application with friendly interface and rich functions can be constructed, and the purpose of cross-mobile platform mutual access is achieved.
An interaction method of a PC side mutual access system based on SSH comprises the following steps:
the method comprises the following steps: the PC end (2) sends an authentication request through the main server (1);
Figure BDA0003331060350000061
where C represents an authentication request, yiRepresents the ith PC end node, h represents the authentication path of the global server, PWiAn authentication key representing the ith PC end node and the general server, i 1, 2, n, n representing the total number of PC end nodes, R representing the initial key between the PC end node and the general server, fiRepresenting request data sent by the ith PC end node to the head server, p representing a data overflow value generated by the authentication key over the authentication channel, N1Time stamp representing the overall server, y' represents the PC end node without the key;
step two: the PC terminal (2) receives the authentication information and sends the authentication information to a preset authentication unit, and the authentication unit verifies the authentication information through a preset verification mechanism, constructs a verification equation and determines a verification result;
Figure BDA0003331060350000062
wherein the content of the first and second substances,
Figure BDA0003331060350000063
representing the result of the verification of the authentication request based on the verification mechanism, ThRepresents a preset time threshold value in the authentication channel of the total server, deltad represents the verification time difference of the server, XSClothes at the mainA preset verification mechanism is arranged in an s authentication channel of the server, and s represents the s authentication channel;
step three: the command controllable unit (5) judges and processes the verification result, and an Apache Cordova framework (6) on the main server (1) establishes corresponding interfaces for different Win system PC ends (12) and iOS system PC ends (13);
step four: and a plurality of PC terminals (2) perform cross-platform data interaction 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 safety problem of the SSH server system level, provides reliable safety guarantee for the mutual access of the mobile PC ends, and the plurality of mobile PC ends establish communication connection through an Apache Cordova framework, so that the method can be applied to various platforms, realizes cross-platform interaction, and has the advantages of simple operation and high utilization rate.
2. The method comprises the steps that UI and page logic parts of a Web layer, extension module packaging of a Cordova layer, adaptation modules of platforms based on the Cordova layer and running environments of the platforms are formed by the extension modules, a platform for mutual access is constructed based on an Apache Cordova framework, cross-platform compiling of the Apache Cordova framework and advantages of a standard Web technology are utilized, the requirements of application functions can be met, development and maintenance costs of main logic of an upper layer are reduced, extension costs of the platforms are reduced, and flexibility of function extension is improved.
3. The authentication requests are sent to the master server through the plurality of PC terminals, and the security of cross-platform interaction between the PC terminals and the master server is improved through the initial key and the authentication keys between different PC terminals and the master server, so that cross-platform interaction is realized, the cross-platform security is improved, and the 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 embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is an overall architecture diagram of the present invention;
FIG. 2 is a flow chart of a method of the present invention;
FIG. 3 is a schematic diagram of the PC side of the present invention;
FIG. 4 is a schematic diagram of the Apache Cordova framework of the present invention.
In the figure, 1-a main server, 2-a PC terminal, 3-a transmission unit, 4-an authentication unit, 5-a command controllable unit, 6-Apache cordiva framework, 601-a Web layer, 602-a cordiva layer, 603-a Native adaptation layer, 7-a data cache expansion unit, 701-a data cache adaptation module, 8-a video monitoring unit, 801-a video monitoring adaptation module, 9-an online retrieval unit, 901-an online retrieval module, 902-a download module, 10-an alternating current sharing unit, 11-a communication service module, 12-a Win system PC terminal, 13-an iOS system PC terminal and 14-a visual unit.
Detailed Description
Embodiments of the present application will be described in detail with reference to the drawings and examples, so that how to implement technical means to solve technical problems and achieve technical effects of the present application can be fully understood and implemented.
As shown in fig. 1-4, the PC-side mutual access system based on SSH and the interaction method thereof provided by this embodiment include a main server 1 and a plurality of PC sides 2 wirelessly connected to the main server 1, wherein the main 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 main server 1 through the transmission unit 3 and carries an authentication number;
the main server 1 receives the serial number of the PC end 2 and transmits the information to the authentication unit 4, and the authentication unit 4 authenticates the serial number;
the PC end 2 sends an authentication request to the main server 1, wherein the carried authentication number is 010;
the main server 1 receives the 010 authentication request with the authentication number, authenticates through the authentication unit 4 and replies authentication information, wherein the authentication information carries an authentication mode list which is supported by the main server 1 and needs to be completed by another PC terminal 2;
the other PC end 2 sends a certain authentication mode from the main server 1, the main server 1 receives an authentication request of the other PC end 2, verifies the authentication information of the other PC end 2 and judges through 5;
the main server 1 determines whether to need to continue authentication of the PC end 2 according to the configuration of the two PC ends 2, and the following specific cases are included:
if the authentication mode 010 succeeds in authentication and the PC end 2 does not need to continue to complete other authentications, the main server 1 replies an authentication success message, and the authentication process is completed smoothly;
if the authentication mode fails, the authentication mode of the PC end 2 is changed to 011, if the authentication times reach the maximum value of the authentication times, the authentication of the PC end 2 fails, the main 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 expanding unit 7, a video monitoring unit 8, an online retrieval unit 9, an exchange sharing unit 10 and a communication service module 11;
the general server 1 and the PC end 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 for providing upper functional logic;
the cordiva layer 602 is used to provide middle layer functional logic;
the Native adaptation layer 603 is used for providing bottom layer functional support;
the UI and page logic part of the Web layer 601, the encapsulation of each expansion module of the Cordova layer 602, the construction of a mutual access platform based on the Apache Cordova framework 6 by the expansion modules based on the adaptation modules of each platform and the runtime environment of each platform are formed by the parts, the cross-platform compilation of the Apache Cordova framework 6 and the advantages of the standard Web technology are utilized, the development and maintenance cost of the 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;
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 the adaptation of the PC end 12 of the Win system and the PC end 13 of the iOS system;
in the adaptation of the PC end 12 of the Win system, the connection with the server is established based on the TCP channel, the push from the main server 1 is received at any time, the maintenance of the TCP long connection is realized based on the Service component, and the Service of the Android mainly includes the following key components:
the Transclient object is used for maintaining network connection and message communication and processing all logic of network communication;
a Handler object for handling message notification processing among multiple threads;
the method comprises the following steps that an AlarmManager object registers Android clock management, starts a system broadcast when the object is triggered by timing, and uses broadcast reception to perform a timing task;
for Android server programs, services for TCP connection processing realized in different modes can be accessed;
in the iOS system PC 13, the push processing of the message is performed based on the connection between the APNS and the iOS device, and the specific message is pulled from the third party server when the user interaction occurs.
In the iOS, the implementation of the push technology is different from that of Android, a notification is pushed to equipment by Token bound with a user through the APNS of Apple, and after the user interacts with a cross-platform, information connection is established with a main 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 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 1 comprises a visualization unit 14,
the visual unit 14 establishes 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;
the visual unit 14 is used for providing access to visual components, including accessing to a third-party video monitoring SDK, and the Web layer 601 on the upper layer can use Javascript to implement a video monitoring function, so that the system is protected conveniently, and the security of the system is improved.
The communication service module 11 establishes communication connection with the PC terminals 2 in a wireless manner, and the communication service module 11 is used for login information maintenance and assisting communication connection among the plurality of PC terminals 2, and is used for realizing adaptation of the Win system PC terminal 12 and the iOS system PC terminal 13;
in the implementation of the communication service module 11, different adaptations are performed according to message push mechanisms of different platforms, for example, a TCP long connection mode is adopted in Android to keep alive a communication link, and the iOS itself has the apple APNS push mechanism guarantee, so that the push link keep alive is delivered to the iOS system.
Data cache adaptation module 701 is used for providing file reading and writing and database reading and writing function to the Web layer, can carry out the reading and writing and the storage of data between two cell-phones, really realizes the system of visiting each other across the platform, and two cell-phones can be for two ann shang zhu, two apples or an apple and an ann zhu, promote the application range of this system.
The video monitoring unit 8 comprises a video monitoring adaptation module 801, and the video monitoring adaptation module 801 is used for realizing the adaptation of the PC end 12 of the Win system and the PC end 13 of the iOS system;
the video monitoring adaptation module 801 is used for providing video monitoring extension module calling for the Web layer 601, accessing a third-party video monitoring file on the Native adaptation layer 603, and calling the video monitoring unit 8 by the Web layer 601 through the Native adaptation layer 603;
the video monitoring unit 8 is used for authentication, and the use safety of the system is improved.
The online retrieval unit 9 comprises an online retrieval module 901 and a download module 902, and is used for linking the PC terminal 2, obtaining the retrieval result online, and downloading the retrieval result into the local folder through the download module 902;
the communication sharing unit 10 is used for realizing multi-user online communication through a built-in instant messaging tool based on a UDP protocol, and realizing file transfer by using a TCP protocol;
one mobile phone can be used for searching the other mobile phone, and files of the PC end 2 of the other party can be directly downloaded and stored after the contents are searched, so that the use range and flexibility of the system are improved.
The main logic modules of the Web layer 601 include: based on the UI interface and the functional logic of HTML, CSS, Javascript and jQueryMobile technologies, the function of the Apache Cordova framework 6 is called through the Native adaptation layer 603;
in order to realize main functions, UI interfaces and the like of cross-platform mutual access, the HTML, the CSS and the jQueryMobile in the Web layer 601 realize functional logic and UI interfaces of an upper layer, so that cross-platform mutual access system application with friendly and rich functions can be constructed, and the purpose of cross-mobile platform mutual access is achieved.
As shown in fig. 1 to fig. 4, the interaction method of the PC-side mutual access system based on SSH provided in this embodiment includes the following steps:
the method comprises the following steps: the PC side sends an authentication request through the main server;
Figure BDA0003331060350000111
where C represents an authentication request, yiRepresents the ith PC end node, h represents the authentication path of the global server, PWiAn authentication key representing the ith PC end node and the general server, i 1, 2, n, n representing the total number of PC end nodes, R representing the initial key between the PC end node and the general server, fiRepresenting request data sent by the ith PC end node to the head server, p representing a data overflow value generated by the authentication key over the authentication channel, N1Time stamp representing the overall server, y' represents the PC end node without the key;
step two: the PC end receives the authentication information and sends the authentication information to a preset authentication unit, and the authentication unit verifies the authentication information through a preset verification mechanism, constructs a verification equation and determines a verification result;
Figure BDA0003331060350000121
wherein the content of the first and second substances,
Figure BDA0003331060350000122
representing the result of the verification of the authentication request based on the verification mechanism, ThRepresents a preset time threshold value in the authentication channel of the total server, deltad represents the verification time difference of the server, XsA verification mechanism is preset in an s authentication channel of the master server, wherein s represents the s authentication channel;
step three: the command controllable unit judges and processes the verification result, and an Apache Cordova framework on the main server establishes corresponding interfaces for different Win system PC ends and the iOS system PC end;
step four: and a plurality of PC terminals perform cross-platform data interaction 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, data are encrypted and verified, so that the safety of data transmission is improved.
As used in the specification and in the claims, certain terms are used to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This specification and claims do not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms "include" and "comprise" are used in an open-ended fashion, and thus should be interpreted to mean "include, but not limited to. "substantially" means within an acceptable error range, and a person skilled in the art can solve the technical problem within a certain error range to achieve the technical effect basically.
It is noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good 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 good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of additional like elements in the article or system in which the element is included.
The foregoing description shows and describes several preferred embodiments of the invention, but as aforementioned, it is to be understood that the invention is not limited to the forms disclosed herein, but is not to be construed as excluding other embodiments and is capable of use in various other combinations, modifications, and environments and is capable of changes within the scope of the inventive concept as expressed herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A PC end mutual access system based on SSH comprises a main server (1) and a plurality of PC ends (2) which are in wireless connection with the main server (1), and is characterized in that the main 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 terminal (2) and judging the operation command;
the PC end (2) sends an authentication request to the main server (1) through the transmission unit (3) and carries an authentication number;
the general 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 retrieval unit (9), an exchange sharing unit (10) and a communication service module (11);
the head server (1) and the PC terminal (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), wherein the data cache adaptation module (701) is used for realizing the adaptation of a Win system PC end (12) and an iOS system PC end (13).
2. The SSH-based PC-side mutual access system according to claim 1, wherein: the main server (1) comprises a visualization 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 mutual access system according to claim 1, wherein: the communication service module (11) establishes communication connection with the PC terminals (2) in a wireless manner, and the communication service module (11) is used for login information maintenance and assisting communication connection among the plurality of PC terminals (2), and is used for realizing adaptation of the Win system PC terminal (12) and the iOS system PC terminal (13).
4. The SSH-based PC-side mutual access system according to claim 1, wherein:
the Web layer (601) is used for providing functional logic of an upper layer;
the Cordova layer (602) is used for providing middle layer functional logic;
the Native adaptation layer (603) is used to provide underlying functional support.
5. The SSH-based PC-side mutual access system according to 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 mutual access system according to claim 1, wherein: the video monitoring unit (8) comprises a video monitoring adaptation module (801), and the video monitoring adaptation module (801) is used for realizing the adaptation of the Win system PC end (12) and the iOS system PC end (13);
the video monitoring adaptation module (801) is used for providing video monitoring extension module calling for the Web layer (601), accessing a third-party video monitoring file on the Native adaptation layer (603), and calling the video monitoring unit (8) by the Web layer (601) through the Native adaptation layer (603).
7. The SSH-based PC-side mutual access system according to claim 1, wherein: the online retrieval unit (9) comprises an online retrieval module (901) and a downloading module (902) and is used for linking the PC terminal (2), acquiring a retrieval result online and downloading the retrieval result into a local folder through the downloading module (902).
8. The SSH-based PC-side mutual access system according to claim 1, wherein: the communication sharing unit (10) is used for realizing multi-user online communication through a built-in instant messaging tool based on a UDP protocol and realizing file transmission by utilizing a TCP protocol.
9. The SSH-based PC-side mutual access system according to claim 1, wherein: the main logic modules of the Web layer (601) comprise: based on UI interfaces and functional logic of HTML, CSS, Javascript and jQueryMobile technologies, and calling the function of the Apache cordiva framework (6) through the Native adaptation layer (603).
10. An interaction method of a PC side mutual access system based on SSH is characterized in that: the method comprises the following steps:
the method comprises the following steps: the PC end (2) sends an authentication request through the main server (1);
step two: the PC terminal (2) receives the authentication information and sends the authentication information to a preset authentication unit, and the authentication unit verifies the authentication information through a preset verification mechanism, constructs a verification equation and determines a verification result;
step three: the command controllable unit (5) judges and processes the verification result, and an Apache Cordova framework (6) on the main server (1) establishes corresponding interfaces for different Win system PC ends (12) and iOS system PC ends (13);
step four: and a plurality of PC terminals (2) perform cross-platform data interaction 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 true CN114143032A (en) 2022-03-04
CN114143032B 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
CN114143032B (en) 2023-07-07

Similar Documents

Publication Publication Date Title
CN102638797B (en) Access the method for wireless network, terminal, access network node and authentication server
US20140082610A1 (en) Mesh network and mesh network node application
JP2003337794A (en) Session preservation and migration among different browsers on different devices
US20190236470A1 (en) User behavior determination from corroborating control data
US20150296027A1 (en) Continuous Browsing Across Devices
WO2015078140A1 (en) Internet authentication method for wireless network
CN106649446B (en) Information pushing method and device
CN110399578A (en) Page access method and device
CN105744646B (en) A kind of mobile terminal and communication means
CN105657710A (en) Wireless network authentication method and system
CN111049946A (en) Portal authentication method, Portal authentication system, electronic equipment and storage medium
CN111479250A (en) File sharing method, device and system and terminal equipment
US20190238549A1 (en) Fine grained digital experience controls
US9877190B1 (en) System and method for authentication and sharing of subscriber data
CN108966367A (en) A kind of method, apparatus, storage medium and intelligent terminal for managing internet behavior
CN106209584B (en) User information processing method, client and server Internet-based
EP3000219B1 (en) Access to data source via proxy
CN104202432B (en) Remote web management system and management method
Hac Multimedia applications support for wireless ATM networks
CN103729440B (en) A kind of method and device of access website
CN104349202B (en) Video acquiring method and device
CN103369533A (en) Antitheft method and antitheft device of mobile terminal
US20230284025A1 (en) Hyperledger Authorization into a Radio Access Network (RAN)
CN114143032A (en) SSH-based PC (personal computer) end mutual access system and interaction method thereof
US20190238644A1 (en) User identification for digital experience controls

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