Free to be implemented into the dense logged-in user's home directory, this experiment is / home / tomandersen, use ssh tool to connect the machine, then it would create the .ssh folder in this path
[tomandersen@hadoop101 ~]$ cd ~
[tomandersen@hadoop101 ~]$ ssh localhost
Last login: Sat Feb 8 20:25:27 2020 from localhost
2) generating public and private keys
Entering .ssh folder id_rsa.pub generate public and private key encryption algorithm rsa id_rsa using ssh-keygen command
[tomandersen@hadoop101 .ssh]$ ssh-keygen -t rsa
3) sends the public key to the user on the specified host
Use ssh-copy-id command sends the public key to create a user needs to log on the remote host, in fact, it is know_hosts end of the file under its user .ssh directory add public key cryptography