#ssh-keygen -b 2048 -t rsa #for i in $(cat 1.txt) ;do ssh-copy-id -i ~/.ssh/id_rsa.pub $i;done
1.txt的内容
192.16.1.211 192.16.1.212 192.16.1.213 192.16.1.214 192.16.1.216 192.16.1.240 192.16.1.246 192.16.1.250
转载于:https://blog.51cto.com/alwaysyunwei/1284100