#!/bin/bashwhile:docat<<EOF1)ssh192.168.1.1232)ssh192.168.1.1243)exitEOFread-p"plaseselect:"numcleartrap""{1..64}case"$num"in1)ssh192.168.1.123;;2)ssh192.168.1.124;;3|*)esacdone
分类:
其他好文 时间:
2017-10-19 12:56:40
阅读次数:
118
摘录自https://github.com/LaiJingli/open_bastion_host环境:CentOS6.7X86_64跳板机地址:192.168.2.11后端服务器地址:192.168.2.120、下载跳板机文件gitclonehttps://github.com/LaiJingli/open_bastion_host.git1、创建跳板机用户先创建tianbanji用户及tiaobanji组,只有跳..
分类:
其他好文 时间:
2016-10-23 21:20:40
阅读次数:
283
#!/bin/basha="192.168.0.200"b="192.168.0.203"#改变键盘键位,不允许使用ctrl+c/ctrl+v等命令中指脚本trapper(){trap":"INTEXITTSTPTERMHUP}while:dotrapperclearcat<<menu1)web$a2)web$b3)exitmenuread-p"pleaseinputyourchoicenumber:"numcase"$num"in1)ssh192.168.0..
分类:
其他好文 时间:
2014-09-11 02:23:22
阅读次数:
266