标签:简单跳板机
#!/bin/bash
while :
do
cat <<EOF
1)ssh 192.168.1.123
2)ssh 192.168.1.124
3)exit
EOF
read -p "plase select:" num
clear
trap "" {1..64}
case "$num" in
1)
ssh 192.168.1.123
;;
2)
ssh 192.168.1.124
;;
3|*)
esac
done
本文出自 “12177655” 博客,谢绝转载!
标签:简单跳板机
原文地址:http://12187655.blog.51cto.com/12177655/1974031