如下內容是關於雲計算學習路線源碼框架筆記內容,下面是關於Shell版JumpServer開發的內容:git
首先要有思路, 完善不足的地方github
#!/usr/bin/env bashbash
#框架
while :ssh
doide
trap ':' INT EXIT TSTP TERM HUP學習
clearui
cat <<-EOF雲計算
+-------------------------------------+server
| JumpServer @Version1.0 |
+-------------------------------------+
| a. WebServer Apache. |
| b. MySQL Databases Server. |
| c. PHP Development Computer. |
| d. Quit |
+-------------------------------------+
EOF
read -p "Please input your jump to server's number: " computer
case $computer in
a)
ssh jumper@192.168.161.129
;;
b)
ssh jumper@192.168.161.130
;;
c)
ssh jumper@192.168.161.131
;;
d)
exit
;;
*)
printf "ERROR: Please redo your select!"
;;
esac
done