1.生成公钥 cd ~/.ssh ssh-keygen #注意询问时,直接回车 2.将公钥发送到远程服务器上,并注册authorized_keys ssh-copy-id root@192.168.45.102