If you changed the host name, IP hostname mapping needs before configuring SSH, specific mapping step in "Installing and configuring Hadoop Hadoop basis of the application environment."
First, generate SSH keys:
# Cd ~ // first enter the directory ~ # ll // view the contents of the directory, if there .ssh file, delete, delete the command: rm file name .... // display file # ssh-keygen -t rsa // generate SSH keys
Enter any thing of all you do not need to type anything, it is the default! Figure:
Out of this thing it shows is generated secret key to success!
Enter ssh to view the content, there are two documents:
You can view the contents inside view commands: cat filename (where the public key with a private key is not the same!)
Second, the public key information stored in the file of the certification authority:
# Cat ~ / .ssh / id_rsa.pub >> ~ / .ssh / authorized_keys // copy the public key to the authorized_keys file under
Third, the test ssh login-free dense stand-alone configuration is successful
# Ssh [email protected] // hostname hadoop.test02 native behind
If the content of the following screenshot appears, it shows dense-free stand-alone version ssh login configuration Success: