Establish a trust relationship between the two servers 1. run the ssh-keygen command on the clien machine to generate the certificate www.2cto.com ssh-keygen-B 1024-t dsaGenerating public/private rsa key pair. enter file in which to save the key (/root /. ssh/id_rsa): Enter passphrase (empty for no passphrase): <-- Enter same passphrase again: <-- press Enter to Enter Your identification has been saved in/root /. ssh/id_rsa.Your public key has been saved in/root /. ssh/id_rsa.pub.The ke Y fingerprint is: 49: 9c: 8a: 8f: bc: 19: 5e: 8c: c0: 10: d3: 15: 60: a3: 32: 1c root @ Client www.2cto.com Note: When the program prompts passphrase, enter the carriage return, indicating that the certificate has no password. The above command generates the Private Key Certificate id_rsa and Public Key Certificate id_rsa.pub, which are stored in the. ssh subdirectory of the user's home directory. 2. copy the Public Key Certificate id_rsa.pub to the. ssh subdirectory of the user's home directory of the Server, and change the file name to authorized_keys.