---- 1、复制公钥到其他机器 ssh-copy-id root@127.0.0.1 2、生成密钥对 ssh-keygen + 若干个回车 3、保证各个文件和目录的权限 {{:pasted:20150322-083543.png}} ---- ==== 第一次登录会提示Are you sure you want to continue connecting (yes/no)? ==== 取消询问 * vim /etc/ssh/ssh_config * 把StrictHostKeyChecking ask 改成 StrictHostKeyChecking no