标签:ssh-copy-id
for i in `cat ahost`;do ssh-copy-id -i /root/.ssh/id_rsa.pub root@$i;done
for i in `cat ahost`;do ssh-copy-id -i /root/.ssh/id_rsa.pub "-p 2234 root@$i";done
注意:`与~同键
ssh-copy-id复制密钥
原文地址:http://406647516.blog.51cto.com/2249087/1922011