######Linux ssh 免密
[root@deploy ~]# cat ip.list
192.168.151.29 root qwer12#$
192.168.151.30 root qwer12#$
192.168.151.31 root qwer12#$
192.168.151.32 root qwer12#$
192.168.151.33 root qwer12#$
192.168.151.34 root qwer12#$
192.168.151.35 root qwer12#$
192.168.151.36 root qwer12#$
192.168.151.37 root qwer12#$
192.168.151.38 root qwer12#$
[root@deploy ~]# cat sh-all.sh
#!/bin/bash
#生成密钥文件authorized_keys
cat ip.list|while read line
do
ip=`echo $line