CN104486441B - Long-range control method based on FTP - Google Patents

Long-range control method based on FTP Download PDF

Info

Publication number
CN104486441B
CN104486441B CN201410824032.3A CN201410824032A CN104486441B CN 104486441 B CN104486441 B CN 104486441B CN 201410824032 A CN201410824032 A CN 201410824032A CN 104486441 B CN104486441 B CN 104486441B
Authority
CN
China
Prior art keywords
ftp
decryption
content
remote
remote server
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
CN201410824032.3A
Other languages
Chinese (zh)
Other versions
CN104486441A (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.)
Henan Xin'an Communication Technology Co Ltd
Original Assignee
Henan Xin'an Communication 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 Henan Xin'an Communication Technology Co Ltd filed Critical Henan Xin'an Communication Technology Co Ltd
Priority to CN201410824032.3A priority Critical patent/CN104486441B/en
Publication of CN104486441A publication Critical patent/CN104486441A/en
Application granted granted Critical
Publication of CN104486441B publication Critical patent/CN104486441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • 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]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of long-range control method based on FTP, comprise the following steps:Step 1, in remote control terminal input cmd instructions, command content is encrypted and is written in specified file, specified file is uploaded to the FTP catalogues of remote server;Step 2, remote server reads the command content in the specified file under FTP catalogues and decryption;Step 3, remote server performs the instruction after decryption and implementing result and initial data is encrypted, and the content after encryption is split and is numbered in sequence;Step 4, remote server is using the character string split and numbered in sequence as filename establishment file, and is moved under FTP catalogues;Step 5, the All Files title under remote control terminal traversal server FTP catalogues, in sequence coding splicing content, and decrypting;Step 6, the command execution results after decryption are printed.The later maintenance to remote monitoring server and its system can be achieved in the present invention.

Description

Long-range control method based on FTP
Technical field
The present invention relates to a kind of long-range control method, more particularly, to a kind of long-range control method based on FTP.
Background technology
In routine work, the program after the completion of exploitation is run on the remote server, in order to monitor service in real time The later maintenance of the running situation and its system of device, it is desirable to be able to remote control service device.But attendant under partial picture The network at place only supports one-way transmission with the network where remote server(FTP network channels are only supported, only upload list Function, forbid downloading), by existing remote control software remote control service device, can not realize that the later stage of operation program ties up Shield.
The content of the invention
In view of this, the purpose of the present invention is in view of the shortcomings of the prior art, there is provided a kind of remote control method based on FTP Method, this method can realize the later maintenance to remote monitoring server and its system.
To reach above-mentioned purpose, the present invention uses following technical scheme:
A kind of long-range control method based on FTP, comprises the following steps:
Step 1, in remote control terminal input cmd instructions, command content is encrypted and is written in specified file, Specified file uploads to the FTP catalogues of remote server;
Step 2, remote server reads the command content in the specified file under FTP catalogues and decryption;
Step 3, remote server performs the cmd after decryption and instructs and implementing result and initial data are encrypted, Content after encryption is split and is numbered in sequence;
Step 4, remote server is using the character string split and numbered in sequence as filename establishment file, and is moved to FTP catalogues;
Step 5, the All Files title under remote control terminal traversal server FTP catalogues, in sequence in coding splicing Hold, and decrypt;
Step 6, the command execution results after decryption are printed.
Preferably, in step 1, command content is encrypted with the DES keys generated at random, will be after RSA public key encryptions DES keys and encryption after command content write in specified file.
Preferably, the decrypting process of step 2 is:DES keys are decrypted by RSA private keys, then pass through DES key solutions It is close go out cmd instruction.
Preferably, in step 3, des encryption is carried out to implementing result, md5 encryption is carried out to initial data, then passed through RSA private key encryptions add as data header, as electronic signature;By the content encrypted and after being signed electronically split and by Encoded according to sequencing.
Preferably, in step 5, remote control terminal first carries out electron underwriting authentication before decryption.
The beneficial effects of the invention are as follows:
The present invention realizes the later maintenance to remote monitoring server and its system, can check the fortune of server in itself Market condition and its simple server operation:Such as server memory occupancy situation, CPU usage, hard disk service condition, current fortune Traveling journey situation etc..The present invention can operate the file on remote server:Replicate, paste, deleting, content such as checks at the operation, The deployment, renewal and its reboot operation of system can be carried out:Pass through file needed for the operation of FTP uploading systems to remote server On, disposed, updated by the operation to system file;Open system process or service;By the operation reparation system such as restarting System etc..The present invention simple queries can also be carried out to database and its simple sql is operated.
Brief description of the drawings
Fig. 1 is the flow chart of the present invention.
Fig. 2 is rsa encryption process schematic.
Embodiment
The invention will be further described with reference to the accompanying drawings and examples.
As shown in figure 1, the present invention comprises the following steps:
Step 1, in remote control terminal input cmd instructions, cmd command contents is encrypted and are written to specified file In, specified file is uploaded to the FTP catalogues of remote server.Remote control terminal is connected to the FTP service end of remote server, Cmd orders are inputted, random to generate DES keys, content and cmd order of the key after RSA public key encryptions are by des encryption In the specified file of the equal write service end FTP catalogues of content.
Step 2, remote server reads the command content in the specified file under FTP catalogues and decryption.Remote server The specified file of monitoring FTP catalogues in real time, receives the encrypted content of remote control terminal transmission, is decrypted by RSA private keys DES keys, cmd orders are gone out by DES secret key decryptions.
Step 3, remote server performs the instruction after decryption and implementing result and initial data is encrypted, encryption Content afterwards is split and is numbered in sequence.Remote server performs cmd orders in the machine, and implementing result is carried out Des encryption and the initial data progress md5 encryption obtained to performing cmd orders, and add as data head by RSA private key encryptions Portion, as signature.Content after encrypting and being signed electronically is split and encoded according to sequencing.
Step 4, remote server is using the character string split and numbered in sequence as filename establishment file, and is moved to FTP catalogues.
Step 5, the All Files title of remote control terminal traversal server FTP catalogues, splicing content is encoded in sequence, Electron underwriting authentication is first carried out, is then decrypted:DES keys are decrypted by RSA private keys, cmd lives are gone out by DES secret key decryptions Order.
Step 6, the command execution results after decryption are printed.
The technology that the present invention uses mainly has:
Multi-process:The situation of process deadlock and other influences system operation may be caused in the process of implementation, can be used The instruction specified restarts new process.
Electronic signature:When command execution results are returned to remote control terminal by remote server, data content is carried out Signature, control terminal carry out signature authentication after receiving data, can ensure the security of data.
AES:Ensure the security for performing the data in command procedure.Des encryption key is random to pass through RSA Signature is sent to remote server and command content is decrypted.Md5 encryption algorithm is used during signature authentication.
Ciphering process is as shown in Fig. 2 in the random DES keys of remote control terminal generation, after RSA public key encryptions, transmission To remote server, content and the encryption of implementing result reply content are performed for instructing.Remote control terminal and remote server it Between data interaction use des encryption.The return information of the remote server received for remote control terminal has signature authentication. Des encryption is carried out to implementing result, md5 encryption is done to the original information/data that execute instruction obtains, by RSA private key encryptions, Data header is added as, as electronic signature, after remote control terminates to data, signature authentication can be carried out to data.
The present invention can check server running situation in itself and its simple server operation:As server memory accounts for It is current to run process situation etc. with situation, CPU usage, hard disk service condition.The file on remote server can be operated: Replicate, paste, deleting, content such as checks at the operation, the deployment, renewal and its reboot operation of system can be carried out:Uploaded by FTP File needed for system operation is disposed by the operation to system file, updated on remote server;Open system process Or service;By the operation repair system etc. such as restarting.The present invention can also carry out simple queries and its simple sql to database Operation.
Finally illustrate, the above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, this area is common Other modifications or equivalent substitution that technical staff is made to technical scheme, without departing from technical solution of the present invention Spirit and scope, all should cover among scope of the presently claimed invention.

Claims (2)

  1. A kind of 1. long-range control method based on FTP, it is characterised in that:Comprise the following steps:
    Step 1, in remote control terminal input cmd instructions, command content is encrypted with the DES keys generated at random, will be public through RSA The command content after DES keys and encryption after key encryption is write in specified file, and specified file is uploaded to remote service The FTP catalogues of device;
    Step 2, remote server reads the command content in the specified file under FTP catalogues and decryption, wherein, decrypting process is DES keys are decrypted by RSA private keys, cmd instructions are then gone out by DES secret key decryptions;
    Step 3, remote server performs the cmd after decryption and instructs and implementing result and initial data are encrypted, wherein, it is right Implementing result carries out des encryption, carries out md5 encryption to initial data, then adds as data header by RSA private key encryptions, makees For electronic signature;The content encrypted and after being signed electronically is split and encoded according to sequencing;
    Step 4, remote server is using the character string split and numbered in sequence as filename establishment file, and is moved to FTP Catalogue;
    Step 5, the All Files title under remote control terminal traversal server FTP catalogues, splicing content is encoded in sequence, and Decryption;
    Step 6, the command execution results after decryption are printed.
  2. A kind of 2. long-range control method based on FTP according to claim 1, it is characterised in that:In step 5, long-range control End processed first carries out electron underwriting authentication before decryption.
CN201410824032.3A 2014-12-26 2014-12-26 Long-range control method based on FTP Active CN104486441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410824032.3A CN104486441B (en) 2014-12-26 2014-12-26 Long-range control method based on FTP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410824032.3A CN104486441B (en) 2014-12-26 2014-12-26 Long-range control method based on FTP

Publications (2)

Publication Number Publication Date
CN104486441A CN104486441A (en) 2015-04-01
CN104486441B true CN104486441B (en) 2018-02-13

Family

ID=52760945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410824032.3A Active CN104486441B (en) 2014-12-26 2014-12-26 Long-range control method based on FTP

Country Status (1)

Country Link
CN (1) CN104486441B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111306A (en) * 2018-01-03 2018-06-01 珠海科诺威配网自动化股份有限公司 A kind of communication means between power distribution automation main station and distribution power automation terminal
CN112953988B (en) * 2019-12-10 2023-03-24 浙江宇视科技有限公司 Data docking method and device based on FTP
CN112866195B (en) * 2020-12-31 2022-09-16 深圳平安医疗健康科技服务有限公司 Agile data transmission method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558574A (en) * 2004-02-05 2004-12-29 浙江大学 Method and system for realizing wireless industrial monitoring by means of cell phones
CN101978222A (en) * 2008-03-28 2011-02-16 三菱电机株式会社 Air conditioning management apparatus and air conditioning management system
CN103051664A (en) * 2012-08-14 2013-04-17 深圳市朗科科技股份有限公司 File management method and device for cloud storage system as well as cloud storage system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558574A (en) * 2004-02-05 2004-12-29 浙江大学 Method and system for realizing wireless industrial monitoring by means of cell phones
CN101978222A (en) * 2008-03-28 2011-02-16 三菱电机株式会社 Air conditioning management apparatus and air conditioning management system
CN103051664A (en) * 2012-08-14 2013-04-17 深圳市朗科科技股份有限公司 File management method and device for cloud storage system as well as cloud storage system

Also Published As

Publication number Publication date
CN104486441A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
CN103546576B (en) A kind of embedded device remote automatic upgrading method and system
CN109040090B (en) A kind of data ciphering method and device
EP3232634B1 (en) Identity authentication method and device
CN1818920B (en) Systems and methods for managing multiple keys for file encryption and decryption
CN110798315B (en) Data processing method and device based on block chain and terminal
JP6546144B2 (en) Secure removable storage for aircraft systems
JP5866460B2 (en) Method and apparatus for packing / unpacking files
CN110535641B (en) Key management method and apparatus, computer device, and storage medium
CN105872848B (en) A kind of credible mutual authentication method suitable for asymmetric resource environment
CN112860791A (en) Cross-network data synchronous control system, method and storage medium
CN104486441B (en) Long-range control method based on FTP
CN106131008B (en) Video and audio monitoring equipment, security authentication method thereof and video and audio display equipment
CN104767766A (en) Web Service interface verification method, Web Service server and client side
CN102611574A (en) Automatic configuration system and configuration method for VPN (Virtual Private Network)
CN113886793A (en) Device login method, device, electronic device, system and storage medium
CN105871858A (en) Method and system for ensuring high data safety
WO2016078382A1 (en) Hsm enciphered message synchronization implementation method, apparatus and system
CN107404476B (en) Method and device for protecting data security in big data cloud environment
KR20120133033A (en) Device and method for performing encryption and decryption of data in wireless terminal
KR20110101317A (en) Method and device for cipher-deciphering data automatically
CN102694796A (en) Method, device and server for encrypted file management
CN103218580B (en) A kind of USB xegregating unit and partition method thereof
CN110611674B (en) Protocol interaction method, system and storage medium between different computer systems
TW201617871A (en) Data backup restoring system and method thereof
JP4924477B2 (en) Detachable device, log collection method, program, and recording medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Kim street 450002 in Henan province Zhengzhou City Hospital No. 7 office building No. 1

Applicant after: HENAN XIN'AN COMMUNICATION TECH CO.,LTD.

Address before: Kim street 450002 in Henan province Zhengzhou City Hospital No. 7 office building No. 1

Applicant before: HENAN XIN 'AN COMMUNICATION TECHNOLOGY Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: HENAN XIN'AN COMMUNICATION TECHNOLOGY LTD. TO: HENAN XIN'AN COMMUNICATION TECHNOLOGY CO., LTD.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 450001 No. 5 Sakura street, hi tech Development Zone, Henan, Zhengzhou

Applicant after: HENAN XIN'AN COMMUNICATION TECH CO.,LTD.

Address before: Kim street 450002 in Henan province Zhengzhou City Hospital No. 7 office building No. 1

Applicant before: HENAN XIN'AN COMMUNICATION TECH CO.,LTD.

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Remote control method based on FTP

Granted publication date: 20180213

Pledgee: China Construction Bank Corporation Zhengzhou Jinshui sub branch

Pledgor: HENAN XIN'AN COMMUNICATION TECH CO.,LTD.

Registration number: Y2024980005777