第一步:ssh-keygen -t rsa 這裡會在你的root下.ssh/ 下生成幾個文件 第二步:ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.36.15 (需要免密码登录的主机) 然后就ok