Just beginning to contact, not very familiar with, make a small record, later revision
Generate public and private keys
Ssh-keygen-t Dsa-p "-F ~/.SSH/ID_DSA
Import the public key into the Authorized_keys file
Cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Under normal circumstances, SSH login will not need to use the password
If prompted: Permission denied, please try again
Modify SSH configuration, path/etc/ssh/sshd_config
Permitrootlogin Without-password
Change into
Permitrootlogin Yes
If the above configuration is completed in SSH still need to use the password, should be the current machine's public key problem, you can send the target machine's public key again to the current machine, and re-import to the Authorized_keys file.
For example, master can login slave without password, but slave cannot log in to master, indicating that slave's public key is problematic, then the authorized_keys of Master is sent to master.
This article is from the "Ogo notes" blog, so be sure to keep this source http://zhixinhu.blog.51cto.com/3132199/1631400
The Ubuntu system SSH password-free login setting during Hadoop installation