Need to achieve:
There are two servers: "192.168.201.236" and "192.168.201.237" Need to implement: implement ssh on server "192.168.201.236" Password Connection Server "192.168.201.237"Implementation Steps:
1) Use the "ssh-keygen -t rsa" command on the "192.168.201.236" server to create the public key. (I will ask you to store the directory, if you do not need to modify, you can directly press Enter twice, the default save path is "~/.ssh/")
2) will be the first step The generated "~/.ssh/id_rsa.pub" file is copied to the "192.168.201.237" server"~/.ssh/" directory and renamed to "authorized_keys".
3) Modify the "192.168.201.237" server"~/.ssh/" directory permissions to 700, "~/.ssh/authorized_keys" file permissions to 600. (This is the security requirement of linux. If the permissions are not correct, the automatic login will not take effect.)
4) Connect to 192.168.201.237 with the ssh command on the "192.168.201.236" server "Server. (As shown below, the connection is successful. Note: 30330 is the 237 server port.)
You may also be prompted for a password:
1) If an alarm occurs: " ;Address XXXX maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!". Execute the following command on the "192.168.201.236" (connected) server: echo "GSSAPIAuthentication no" >> ~/.ssh/config is executed on the "192.168.201.237" (connected) server "vi /etc/ssh/sshd_config" command, modify the following two values as "no" :"GSSAPIAuthentication no" "UseDNS no"2) If an alarm occurs: "Agent admitted failure to sign using The key."execute command: "ssh-add" (add the private key to the ssh-agent cache) If not, execute the command: "ps -Af
using direct-lvm storage method Recently played docker on Bluemix virtual machine, but found that t
As a network operation and maintenance engineer, if you manage more routing and switching d
Two virtual network cards after installing the virtual machine: 1.bridged (bridge mode) <?喎& #
Operating system: Centos6 1.Discover the problem Ping external network packet loss is serious, ping
Linxu SSH login appears Access Denied error solution
Ubuntu14.04 forgot the root password solution
Do DBA must learn, will not die 11 Linux basic commands
Installation of Java, Maven, and Tomcat under Linux
Linux interrupt processing flow
Understanding of packaging and compression in Linux
The failure of surfing the Internet is related to the performance of the network card.
Apache server user authentication simple configuration solution set
Windows 8 system is recognized by Steam platform players.
Teach you to change the theme of Windows 7 Media Center
Word typing to cover the following words of the solution
Win8 completely uninstalls the built-in metro application skills
Win10 preview version 10056 homemade Chinese iso image download address