1. 生成公钥和秘钥 ssh-keygen 2. 复制到需要登录的服务器 ssh-copy-id -i id_rsa.pub root@192.168.1.209 3. 验证 ssh root@192.168.1.209