-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssh.sh
executable file
·35 lines (32 loc) · 1.01 KB
/
ssh.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# old
#ssh level09@$(ifconfig | grep 'inet ' | awk 'NR==2 {print $2}') -p 4242
if [[ $# -eq 1 && "$1" -ge 0 && "$1" -le 14 ]]; then
#lv="level$1"
echo -n " "
case $1 in
1) echo "x24ti5gi3x0ol2eh4esiuxias" ;;
2) echo "f2av5il02puano7naaf6adaaf" ;;
3) echo "kooda2puivaav1idi4f57q8iq" ;;
4) echo "qi0maab88jeaj46qoumi7maus" ;;
5) echo "ne2searoevaevoem4ov4ar8ap" ;;
6) echo "viuaaale9huek52boumoomioc" ;;
7) echo "wiok45aaoguiboiki2tuin6ub" ;;
8) echo "fiumuikeil55xe9cu4dood66h" ;;
9) echo "25749xKZ8L7DkSCwJkT9dyv6f" ;;
10) echo "s5cAJpM8ev6XHw998pRWG728z" ;;
11) echo "feulo4b72j7edeahuete3no7c" ;;
12) echo "fa6v5ateaw21peobuub8ipe6s" ;;
13) echo "g1qKMiRpXf53AWhDaU7FEkczr" ;;
esac
if [[ "$1" -lt 10 ]]; then
lv="level0$1"
else
lv="level$1"
fi
else
lv="level00"
#echo "~[0, 15)"
#exit 1
fi
ssh ${lv}@$(ifconfig | grep 'inet ' | awk 'NR==2 {print $2}') -p 4242