How does one establish a trust relationship on a linux machine ?, Build trust on linux machines
1. For the two hosts A and B, to establish A trust in A on B, you must first generate an ssh-key on host.
Check whether the id_rsa and id_rsa.pub files exist in the. ssh folder. id_rsa.pub is the public key of.
Ls ~ /. Ssh
If the two files have not been generated before ~ /. Run the following commands in the ssh directory. The system will pop up several options for selection. If there is no special need, all the way down by default.
Ssh-keygen-t rsa
Insert a link here to talk about the meaning of each parameter of ssh-keygen, interested in removable http://killer-jok.iteye.com/blog/1853451
View id_rsa.pub content
Cat ~ /. Ssh/id_rsa.pub
2. log on to B and check whether the authorized_keys file is in the. ssh folder of B.
If not, create A new one and paste the printed id_rsa.pub content of host.
Vim authorized_keys
3. log on to B on
Assume that the ip address of B is 10.3.3.3.
Ssh root@10.3.3.3