#103649 - 16 May 1200:55Re: SSH dari bash script
[Re: ilham2930]
buzzing_bee
+
Warga
Terdaftar: 29 Dec 10
Pesan: 1965
Lokasi: /tmp
Contoh bash script dari kantor
Klik untuk menampilkan...
Code:
#!/bin/bash
clear
while :
do
echo "#--------------------#"
echo " [a] SSH to SERVER_1"
echo " [b] SSH to SERVER_2"
echo " [c] SSH to SERVER_3"
echo " [x] EXIT"
echo "#--------------------#"
read pilih
case $pilih in
a) ssh user@ip_address;;
b) ssh user@ip_address;;
c) ssh user@ip_address;;
x) exit ;;
esac
done