CN110569473A - Method for remotely operating linux server based on SSH protocol - Google Patents

Method for remotely operating linux server based on SSH protocol Download PDF

Info

Publication number
CN110569473A
CN110569473A CN201910861982.6A CN201910861982A CN110569473A CN 110569473 A CN110569473 A CN 110569473A CN 201910861982 A CN201910861982 A CN 201910861982A CN 110569473 A CN110569473 A CN 110569473A
Authority
CN
China
Prior art keywords
linux server
linux
ssh protocol
remotely
server based
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.)
Pending
Application number
CN201910861982.6A
Other languages
Chinese (zh)
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.)
Inspur Software Co Ltd
Original Assignee
Inspur Software 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 Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201910861982.6A priority Critical patent/CN110569473A/en
Publication of CN110569473A publication Critical patent/CN110569473A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • 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/08Protocols specially adapted for terminal emulation, e.g. Telnet

Abstract

The invention particularly relates to a method for remotely operating a linux server based on an SSH protocol. The method for remotely operating the linux server based on the SSH protocol remotely connects the linux server through the browser, executes an original linux operation command, calls a provided automation tool, executes an automation flow, customizes execution time and an operation object, and completes automation deployment and operation. According to the method for remotely operating the linux server based on the SSH protocol, the linux server can be remotely operated by logging in a webpage without downloading and installing any tool locally through a web technology, the method is convenient and fast, problems can be solved anytime and anywhere, a process operation mode can be formulated, a complex shell script is avoided, and wrong positions can be found in time under definite process image display.

Description

Method for remotely operating linux server based on SSH protocol
Technical Field
The invention relates to the technical field of remote login protocols, in particular to a method for remotely operating a linux server based on an SSH (secure Shell) protocol.
background
SSH (Secure Shell), made by the Network Group of IETF (Network Working Group); SSH is a security protocol built on an application layer basis. SSH is currently a relatively reliable protocol that provides security for telnet sessions and other web services. The SSH protocol can effectively prevent the problem of information leakage in the remote management process.
Currently, software using xshell, SecureCRT and other C/S modes remotely operates a server through an SSH protocol.
there are three major problems:
1. The downloading and installation are troublesome;
2. The cross-platform method has the advantages that tools of different versions or types cannot be installed under different operating systems in a cross-platform mode;
3. The interface is not friendly, some simple and automatic operation flows cannot be customized, the processing can be performed only by editing the shell script, and when the shell script is too complex, the error positioning is difficult.
The invention provides a method for remotely operating a linux server based on an SSH (secure Shell) protocol, which aims to solve the problems that the downloading and installation of a common C/S mode remote tool are troublesome, multiple operating systems cannot be connected by one tool, the flow cannot be defined by users, complicated shell scripts need to be compiled for automatic deployment operation and the like.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient method for remotely operating the linux server based on the SSH protocol.
The invention is realized by the following technical scheme:
A method for remotely operating a linux server based on an SSH protocol is characterized in that: the method comprises the steps of remotely connecting a linux server through a browser, executing an original linux operation command, calling a provided automation tool, executing an automation flow, customizing execution time and an operation object, and finishing automation deployment and operation.
The method for remotely operating the linux server based on the SSH protocol is characterized in that a page is customized in a browser process, a relevant operation view is selected, time and operation sequence are set, a remote deployment automation process is executed, and the next operation is triggered by formulating an event, time and an operation object, so that the automation deployment is realized.
The method for remotely operating the linux server based on the SSH protocol can also call the self-written and uploaded shell script to generate a user-defined operation view, and execute the user-defined operation view at regular time.
According to the method for remotely operating the linux server based on the SSH protocol, the remote operation function is realized through the operation view, the automation process is customized by using the operation view buttons, the operation view buttons comprise a folder creation button, a decompression button, a resource downloading button and a timing execution button, and the operation can be finished in the operation view definition execution sequence and asynchronously.
The method for remotely operating the linux server based on the SSH protocol is developed by using an SSM (Spring, Spring MVC and MyBatis) frame and a JSCH toolkit, a user inputs information of the linux server to be remotely controlled through a browser page, a background obtains the input information, calls the JSCH toolkit using java, establishes connection with the linux server through the SSH protocol, inputs related instructions in a command window provided by the webpage like a used C/S desktop tool, and the background finishes operation and returns an operation result to the browser page.
The information of the linux server to be remotely controlled comprises the IP address and the port number of the linux server; in order to facilitate direct use in next login, relevant description information of the linux server can be input, and CPU information, memory information, disk use information, system kernel information and overall performance information of the server can be displayed after a user logs in for connection next time.
when the file of the linux server is remotely operated, firstly, under a directory specified by a user, a directory structure of the remote linux server is obtained through an sftp related method provided by a JSCH toolkit, and the file is transmitted to the lower part of the corresponding directory of the linux server; and then, deleting, copying and moving the file of the remote linux server by using the shortcut view operation of the browser page.
The method for remotely operating the linux server based on the SSH protocol can also operate a plurality of linux servers, and after remote IP and remote ports of the plurality of linux servers are registered, the complex multi-server deployment work can be executed in batch by customizing the automatic flow.
The invention has the beneficial effects that: according to the method for remotely operating the linux server based on the SSH protocol, the linux server can be remotely operated by logging in a webpage without downloading and installing any tool locally through a web technology, the method is convenient and fast, problems can be solved anytime and anywhere, a process operation mode can be formulated, a complex shell script is avoided, and wrong positions can be found in time under definite process image display.
Drawings
FIG. 1 is a schematic diagram of a method for remotely operating a linux server based on an SSH protocol according to the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more apparent, the present invention is described in detail below with reference to the embodiments. It should be noted that the specific embodiments described herein are only for explaining the present invention and are not used to limit the present invention.
The method for remotely operating the linux server based on the SSH protocol remotely connects the linux server through the browser, executes an original linux operation command, calls a provided automation tool, executes an automation flow, customizes execution time and an operation object, and completes automation deployment and operation.
the method for remotely operating the linux server based on the SSH protocol is characterized in that a page is customized in a browser process, a relevant operation view is selected, time and operation sequence are set, a remote deployment automation process is executed, and the next operation is triggered by formulating an event, time and an operation object (handle), so that automatic deployment is realized.
The method for remotely operating the linux server based on the SSH protocol can also call the self-written and uploaded shell script to generate a user-defined operation view, and execute the user-defined operation view at regular time.
According to the method for remotely operating the linux server based on the SSH protocol, the remote operation function is realized through the operation view, the automation process is customized by using the operation view buttons, the operation view buttons comprise a folder creation button, a decompression button, a resource downloading button and a timing execution button, and the operation can be finished in the operation view definition execution sequence and asynchronously.
The method for remotely operating the linux server based on the SSH protocol is developed by using an SSM (Spring, Spring MVC and MyBatis) frame and a JSCH toolkit, a user inputs information of the linux server to be remotely controlled through a browser page, a background obtains the input information, calls the JSCH toolkit using java, establishes connection with the linux server through the SSH protocol, inputs related instructions in a command window provided by the webpage like a used C/S desktop tool, and the background finishes operation and returns an operation result to the browser page.
the SSM framework is formed by integrating three open source frameworks of Spring, Spring MVC and MyBatis and is often used as a framework of a web project with a simpler data source.
Spring, among other things, is a lightweight controlled inversion (IoC) and cut-out (AOP) container frame.
SpringMVC separates the roles of controller, model objects, dispatcher, and handler objects, making them easier to customize.
MyBatis is an excellent persistence layer framework that supports normal SQL queries, stored procedures and advanced mappings.
The page sends a request to the controller, the controller calls a service layer processing logic, the logic layer sends the request to the persistence layer, the persistence layer interacts with the database and then returns a result to the service layer, the service layer sends the processing logic to the controller, and the controller calls the view display data again.
The information of the linux server to be remotely controlled comprises the IP address and the port number of the linux server; in order to facilitate direct use in next login, relevant description information of the linux server can be input, and CPU information, memory information, disk use information, system kernel information and overall performance information of the server can be displayed after a user logs in for connection next time.
When the file of the linux server is remotely operated, firstly, under a directory specified by a user, a directory structure of the remote linux server is obtained through an SFTP related method provided by a JSCH toolkit, and the file is transmitted to the lower part of the corresponding directory of the linux server; and then, deleting, copying and moving the file of the remote linux server by using the shortcut view operation of the browser page.
SFTP is an abbreviation of SSH File Transfer Protocol, secure File Transfer Protocol. A secure network encryption method may be provided for transferring files. SFTP has almost the same syntax and functionality as FTP. SFTP is part of SSH, which is a secure way to transfer files to the Blgger server.
In fact, in the SSH software package, a Secure File information transmission subsystem called SFTP (Secure File Transfer Protocol) is already included, and SFTP itself has no separate daemon process, and it must use SSHd daemon process (the default of port number is 22) to complete corresponding connection and reply operations, so in a sense, SFTP is not like a server program, but rather like a client program. SFTP is also used to encrypt authentication information and transmitted data, and therefore, it is very secure to use SFTP. However, since this transmission method uses an encryption/decryption technique, the transmission efficiency is much lower than that of the ordinary FTP.
The method for remotely operating the linux server based on the SSH protocol can also operate a plurality of linux servers, and after remote IP and remote ports of the plurality of linux servers are registered, the complex multi-server deployment work can be executed in batch by customizing the automatic flow.
Compared with the prior art, the method for remotely operating the linux server based on the SSH protocol has the following characteristics:
1. The linux server can be remotely operated by logging in a webpage without downloading and installing any tool locally, so that the linux server is convenient and quick to use;
2. Various operating systems are supported, and remote operation can be performed as long as a webpage is logged in through a browser;
3. Under the condition of no PC (personal computer), the remote operation can be carried out through a browser of a mobile terminal such as a mobile phone;
4. the operation flow can be customized without complex shell scripts;
5. Each step of remote operation execution has related feedback, the wrong position is found in time under the definite process image display, the time for operation and maintenance personnel to check the problems can be saved, the problems are quickly positioned, and the smooth execution of the process is ensured.
The above-described embodiment is only one specific embodiment of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.

Claims (8)

1. A method for remotely operating a linux server based on an SSH protocol is characterized in that: the method comprises the steps of remotely connecting a linux server through a browser, executing an original linux operation command, calling a provided automation tool, executing an automation flow, customizing execution time and an operation object, and finishing automation deployment and operation.
2. the method for remotely operating a linux server based on an SSH protocol according to claim 1, wherein: the method comprises the steps of customizing a page in a browser process, selecting a related operation view, setting time and operation sequence, executing a remote deployment automation process, and triggering the next operation by formulating an event, time and an operation object, thereby realizing automatic deployment.
3. the method for remotely operating a linux server based on an SSH protocol according to claim 1 or 2, wherein: and a self-written and uploaded shell script can be called to generate a user-defined operation view, and the user-defined operation view is executed at regular time.
4. The method for remotely operating a linux server based on an SSH protocol according to claim 3, wherein: the remote operation function is realized through the operation view, the automation flow is customized by using operation view buttons, the operation view buttons comprise a folder creating button, a decompressing button, a resource downloading button and a timing executing button, and the operation can be finished in the operation view in a defined executing sequence and asynchronously.
5. The method for remotely operating a linux server based on an SSH protocol according to claim 3, wherein: the method comprises the steps of developing by using an SSM frame and a JSCH toolkit, inputting information of a linux server to be remotely input by a user through a browser page, obtaining the input information by a background, calling the JSCH toolkit using java, establishing connection with the linux server through an SSH protocol, inputting related instructions in a command window provided by a webpage like a used C/S desktop tool, finishing operation by the background and returning an operation result to the browser page.
6. The method for remotely operating a linux server based on an SSH protocol according to claim 5, wherein: the information of the linux server to be remotely controlled comprises the IP address and the port number of the linux server; in order to facilitate direct use in next login, relevant description information of the linux server can be input, and CPU information, memory information, disk use information, system kernel information and overall performance information of the server can be displayed after a user logs in for connection next time.
7. The method for remotely operating a linux server based on an SSH protocol according to claim 5, wherein: when the file of the linux server is remotely operated, firstly, under a directory specified by a user, a directory structure of the remote linux server is obtained through an sftp related method provided by a JSCH toolkit, and the file is transmitted to the lower part of the corresponding directory of the linux server; and then, deleting, copying and moving the file of the remote linux server by using the shortcut view operation of the browser page.
8. the method for remotely operating a linux server based on an SSH protocol according to claim 7, wherein: the method can be used for operating the plurality of linux servers, and after remote IP and remote ports of the plurality of linux servers are registered, the automatic flow is customized, so that the complex multi-server deployment work can be executed in batches.
CN201910861982.6A 2019-09-12 2019-09-12 Method for remotely operating linux server based on SSH protocol Pending CN110569473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910861982.6A CN110569473A (en) 2019-09-12 2019-09-12 Method for remotely operating linux server based on SSH protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910861982.6A CN110569473A (en) 2019-09-12 2019-09-12 Method for remotely operating linux server based on SSH protocol

Publications (1)

Publication Number Publication Date
CN110569473A true CN110569473A (en) 2019-12-13

Family

ID=68779442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910861982.6A Pending CN110569473A (en) 2019-09-12 2019-09-12 Method for remotely operating linux server based on SSH protocol

Country Status (1)

Country Link
CN (1) CN110569473A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881108A (en) * 2020-07-27 2020-11-03 广州锦行网络科技有限公司 File transmission method and device based on web ssh
CN114363332A (en) * 2021-12-27 2022-04-15 徐工汉云技术股份有限公司 Distributed-based gateway remote automatic operation and maintenance method
CN115052036A (en) * 2022-06-06 2022-09-13 国网江苏省电力有限公司泰州供电分公司 Unmanned aerial vehicle inspection instruction pushing and creating method based on SSH service framework
CN115442206A (en) * 2022-08-25 2022-12-06 浪潮云信息技术股份公司 Method and system for GO micro-service remote deployment in cloud environment
CN116233122A (en) * 2023-05-06 2023-06-06 上海观安信息技术股份有限公司 Heterogeneous server login method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6505238B1 (en) * 1999-08-19 2003-01-07 International Business Machines Corporation Method and system for implementing universal login via web browser
WO2013107170A1 (en) * 2012-01-17 2013-07-25 中兴通讯股份有限公司 Remote network management system and service operation method therefor
CN106060066A (en) * 2016-06-28 2016-10-26 积成电子股份有限公司 Embedded linux-based method for realizing terminal maintenance and information release
CN108737559A (en) * 2018-05-30 2018-11-02 郑州云海信息技术有限公司 Remote entry method, system, equipment and the readable storage medium storing program for executing of goal systems
CN109768965A (en) * 2018-12-14 2019-05-17 广州华多网络科技有限公司 A kind of login method of server, equipment and storage device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6505238B1 (en) * 1999-08-19 2003-01-07 International Business Machines Corporation Method and system for implementing universal login via web browser
WO2013107170A1 (en) * 2012-01-17 2013-07-25 中兴通讯股份有限公司 Remote network management system and service operation method therefor
CN106060066A (en) * 2016-06-28 2016-10-26 积成电子股份有限公司 Embedded linux-based method for realizing terminal maintenance and information release
CN108737559A (en) * 2018-05-30 2018-11-02 郑州云海信息技术有限公司 Remote entry method, system, equipment and the readable storage medium storing program for executing of goal systems
CN109768965A (en) * 2018-12-14 2019-05-17 广州华多网络科技有限公司 A kind of login method of server, equipment and storage device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孔祥真等: "Linux操作系统服务器SSH方式远程管理配置", 《网络安全技术与应用》 *
张国防: "基于SSH协议的Linux远程管理", 《计算机安全》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881108A (en) * 2020-07-27 2020-11-03 广州锦行网络科技有限公司 File transmission method and device based on web ssh
CN114363332A (en) * 2021-12-27 2022-04-15 徐工汉云技术股份有限公司 Distributed-based gateway remote automatic operation and maintenance method
CN114363332B (en) * 2021-12-27 2024-01-23 徐工汉云技术股份有限公司 Remote automatic operation and maintenance method based on distributed gateway
CN115052036A (en) * 2022-06-06 2022-09-13 国网江苏省电力有限公司泰州供电分公司 Unmanned aerial vehicle inspection instruction pushing and creating method based on SSH service framework
CN115442206A (en) * 2022-08-25 2022-12-06 浪潮云信息技术股份公司 Method and system for GO micro-service remote deployment in cloud environment
CN116233122A (en) * 2023-05-06 2023-06-06 上海观安信息技术股份有限公司 Heterogeneous server login method, device, equipment and medium
CN116233122B (en) * 2023-05-06 2023-07-04 上海观安信息技术股份有限公司 Heterogeneous server login method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110569473A (en) Method for remotely operating linux server based on SSH protocol
CN106462467B (en) Integrated API and UI for consuming services over different distributed networks
CN107924411B (en) Method and system for recovering UI state in transaction system
US11102313B2 (en) Transactional autosave with local and remote lifecycles
US20110213821A1 (en) Method, system, and computer readable medium for remote assistance, support, and troubleshooting
US20220326974A1 (en) System and method for automated process orchestration
US20030172046A1 (en) Method and system for managing systems as databases
US20230123054A1 (en) Browser-driven capture of application installations for application virtualization
CN113170283A (en) Triggering event notifications based on messages to application users
US11461288B2 (en) Systems and methods for database management system (DBMS) discovery
US20220046002A1 (en) System and method for authentication as a service
US20190268349A1 (en) System and method for unified secure remote configuration and management of multiple applications on embedded device platform
US11513823B2 (en) Chat interface for resource management
US11003463B2 (en) Virtual desktop
WO2022246635A1 (en) Shortcut keys for virtual keyboards
US11899792B2 (en) System for security scanning code with minimal user interface
US20210406274A1 (en) Systems and methods for database delta automation
JP2007122691A (en) Information processor, information processing method and program
KR101418390B1 (en) system for remotely debugging an application programming and controlling method therefor
Cui et al. PRUID: Practical User Interface Distribution for Multi-surface Computing
Wang et al. Design and implementation of remote control system between Android platform
KR100494827B1 (en) Distributed object model based radio server with hardware-independent communication interface and communication control method using the same
CN110266646A (en) Service host, cipher management method and storage medium
US20200252387A1 (en) Accessing a control platform
CN114595005A (en) Application program starting method and device, computer equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191213