Answer the question
In order to leave comments, you need to log in
How to pass a variable to the server?
Hello.
Script:
echo "Enter IP: $S"
read S
printf "CHECK BLOCK IP: $S "
echo
ssh -tt [email protected] /bin/bash << 'EOT'
iptables-save | grep | grep $S
exit
EOT
read -p "Press enter to continue!!!!"
echo "SUCCESS!!!"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question