在每台服务器上都执行ssh-keygen -t rsa生成密钥对: $ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/tscms/.ssh/id_rsa): Created directory '/home/tscms/.ssh'. Enter passphrase (empty for no passphrase): Enter same…