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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


