-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathallconnect.sh
More file actions
executable file
·15 lines (10 loc) · 869 Bytes
/
allconnect.sh
File metadata and controls
executable file
·15 lines (10 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
OWN_IP=$(hostname -I | cut -d' ' -f 2)
bash interconnect.sh
sshpass -p osboxes.org ssh osboxes@192.168.0.1 bash interconnect.sh && echo -e "\e[32m192.168.0.1 OK\e[39m "
sshpass -p osboxes.org ssh osboxes@192.168.0.2 bash interconnect.sh && echo -e "\e[32m192.168.0.2 OK\e[39m "
sshpass -p osboxes.org ssh osboxes@192.168.0.3 bash interconnect.sh && echo -e "\e[32m192.168.0.3 OK\e[39m "
sshpass -p osboxes.org ssh osboxes@192.168.0.4 bash interconnect.sh && echo -e "\e[32m192.168.0.4 OK\e[39m "
sshpass -p osboxes.org ssh osboxes@192.168.0.5 bash interconnect.sh && echo -e "\e[32m192.168.0.5 OK\e[39m "
sshpass -p osboxes.org ssh osboxes@192.168.0.6 bash interconnect.sh && echo -e "\e[32m192.168.0.6 OK\e[39m "
sshpass -p osboxes.org ssh osboxes@192.168.0.7 bash interconnect.sh && echo -e "\e[32m192.168.0.7 OK\e[39m "
echo $OWN_IP 'We are all interconnected'