-
-
Save usametov/79380ee9f049522231810d2e0a1e9701 to your computer and use it in GitHub Desktop.
Getting ssh access to HITRON cable modem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#HITRON=10.10.2.1 | |
HITRON=192.168.100.1 | |
USER=app | |
PASSWORD="com8&#wDs2*1er" | |
OPTIONS="-o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ServerAliveInterval=5 -o ServerAliveCountMax=1" | |
echo Password of $USER $PASSWORD | |
while [ 1 ] | |
do | |
echo connect... | |
sshpass -p$PASSWORD ssh $OPTIONS $USER@$HITRON $1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment