三臺機器之間mysql用戶ssh互信配置 切換到以下路徑,執行相關操做 cd /home/mysql/.ssh (1)在全部的主機上執行: ssh-keygen -t rsa # 在每臺都須要操做,一路回車,生成一對公私鑰。 (2)節點1執行 ssh-copy-id -i id_rsa.pub mysql@devdb02 ssh-copy-id -i id_rsa.pub mysql@devdb03 (3)節點2執行 ssh-copy-id -i id_rsa.pub mysql@devdb01 ssh-copy-id -i id_rsa.pub mysql@devdb03 (4)節點3執行 ssh-copy-id -i id_rsa.pub mysql@devdb01 ssh-copy-id -i id_rsa.pub mysql@devdb02 #測試(強烈建議) ssh devdb01 ssh devdb02 ssh devdb03