Expect批量添加ssh免密登录
目录
编写脚本deploy_ssh_key.exp
|
|
批量执行
for x in cat ip.txt | awk ‘{print $1}‘;do ./deploy_ssh_key.exp $x;done
|
|
for x in cat ip.txt | awk ‘{print $1}‘;do ./deploy_ssh_key.exp $x;done