Linux机器添加互信脚本
来源:互联网 发布:mac打开远程桌面连接 编辑:程序博客网 时间:2024/06/01 22:46
SUSE机器添加互信
#!/bin/bashnum=1nump=”$num””p”for i in ‘cat ip.txt’doecho “ip:”$ipaswd=’sed –n “$nump” paswd.txt’echo “passwd:”$paswd/usr/bin/expect <<EOFset timeout -1spawn ssh-copy-id –i /root/.ssh/id_rsa.pub root@$iexpect “*(yes/no)?” {send “yes\r”}expect “*Password:” {send “$paswd\r”}expect eofEOFLet num++nump=”$num””p”done
centOS机器添加互信
#!/bin/bashnum=1nump=”$num””p”for i in ‘cat ip.txt’doecho “ip:”$ipaswd=’sed –n “$nump” paswd.txt’echo “passwd:”$paswd/usr/bin/expect <<-EOFspawn ssh-copy-id –i /root/.ssh/id_rsa.pub root@$iexpect “*Password:” send “$paswd\r”expect eofEOFLet num++nump=”$num””p”done
0 0
- Linux机器添加互信脚本
- linux 创建互信脚本
- Linux多服务器添加互信
- 批量建立linux机器之间的ssh互信的自动化脚本
- linux机器间建立ssh互信
- Linux自动批量建立SSH互信脚本
- expect脚本实现互信
- shell批量互信脚本
- SSH添加互信
- linux ssh scp 无密码登录及机器copy-机器互信建立
- ssh key互信shell脚本
- hadoop批量创建互信脚本
- linux主机互信
- linux 互信不生效
- linux配置SSH 互信
- linux ssh互信配置
- linux双机互信设置
- linux ssh互信配置
- leetcode_middle_38_398. Random Pick Index
- 最长回文子串:manacher算法
- Oracle收购Apiary来加强其API集成云
- Java中this使用的小总结
- 移动测试基础 Android 常用 adb 命令总结
- Linux机器添加互信脚本
- Channel Allocation poj1129 (深搜/四色/枚举)
- 新手福音︱正则表达式小工具RegExr
- POJ 3916 Duplicate Removal G++
- Spark 线性回归
- springMVC--封装参数及页面回显
- 连续平方数
- django 错误1
- 轻松搞定RabbitMQ(三)——消息应答(客户端挂)与消息持久化(服务器端挂)