Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for automatic configuration of ssh password-free access

An automatic configuration and password-free technology, applied in the transmission system, electrical components, etc., can solve the cumbersome password input problem of ssh login, and achieve the effect of improving the efficiency of remote operation

Inactive Publication Date: 2017-05-31
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on the problems existing in the prior art, the present invention proposes a method and system for automatically configuring ssh access without a password, which is realized by using the Linux bash language to write a test program, which solves the cumbersome password input problem of ssh login between servers, and at the same time In the login command, the hostname of the visited node is used instead of the IP, and the node can be accessed without memorizing the IP, which is convenient for management and use

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for automatic configuration of ssh password-free access
  • Method and system for automatic configuration of ssh password-free access
  • Method and system for automatic configuration of ssh password-free access

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Specific implementations are described as follows:

[0020] The present invention provides a method for automatically configuring ssh access without a password, and the method flow is as attached figure 1 shown.

[0021] Step 101, use ssh-keygen to generate a public key, copy the public key to the slave node .ssh / directory, and configure the hostfile file;

[0022] Among them, configuring the hostfile file is to add the hostnames hostnames of all the nodes to be configured in the server cluster to the hostfile file. Taking 16 nodes as an example, the hostnames are m01 to m16 respectively.

[0023] Step 102, run the ssh main script, and perform a ping operation on all nodes to be configured to ensure network intercommunication.

[0024] The main ssh script is ssh.sh, and the pseudocode is:

[0025] for i in `cat hostfile`; do ping $i -c 1; done

[0026] . / step1.exp

[0027] #Execute the step1.exp script

[0028] . / step2.exp 111111

[0029] #Execute the step2.exp ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a system for automatic configuration of ssh password-free access. The technical problem about configuration of ssh password-free access is solved with a Linux bash language test program, accordingly, a server cluster system can realize password-free access and bulk operation on multiple nodes in a system test or operation and maintenance test, the password of each server does not need to be memorized or input, and the remote operation efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of computer information security, in particular to a method and system for automatically configuring ssh passwordless access. Background technique [0002] In the technical field of computer information security, ssh is Secure Shell (Safe Shell), which is a general, powerful, software-based network security solution, and ssh is a safe substitute tool for r-system commands in Unix systems , it simplifies the symmetric and asymmetric encryption of remote access identification and authentication, improves the functions provided by inetd on the server side, every time the computer wants to send data to the network, ssh will automatically encrypt it, and the data reaches the destination ssh automatically decrypts the encrypted data, and the whole process is transparent. Currently, Unix, Linux, and FreeBSD systems all support ssh. [0003] However, in the prior art, access to ssh usually requires entering a passw...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/06
Inventor 张超
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD