Skip to content

Instantly share code, notes, and snippets.

@usametov
Forked from breyer/ssh2hitron.sh
Created April 8, 2024 01:55
Show Gist options
  • Save usametov/79380ee9f049522231810d2e0a1e9701 to your computer and use it in GitHub Desktop.
Save usametov/79380ee9f049522231810d2e0a1e9701 to your computer and use it in GitHub Desktop.
Getting ssh access to HITRON cable modem
#!/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