雲計算學習路線源碼框架筆記:Shell版JumpServer開發

以下內容是關於雲計算學習路線源碼框架筆記內容,下面是關於Shell版JumpServer開發的內容:

首先要有思路, 完善不足的地方

#!/usr/bin/env bash

#

Author: bavdu

Email: [email protected]

Github: https://github.com/bavdu

Date: 2019//

while :

do

trap ':' INT EXIT TSTP TERM HUP

clear

cat <<-EOF

+-------------------------------------+

| 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 [email protected]

;;

b)

ssh [email protected]

;;

c)

ssh [email protected]

;;

d)

exit

;;

*)

printf "ERROR: Please redo your select!"

;;

esac

done

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章