Skip to content

Instantly share code, notes, and snippets.

@breyer
Created March 2, 2021 09:22
Show Gist options
  • Save breyer/2bca7d8535de785db67e95cf07e98f53 to your computer and use it in GitHub Desktop.
Save breyer/2bca7d8535de785db67e95cf07e98f53 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
@breyer
Copy link
Author

breyer commented Mar 29, 2022

If I remember correctly, this allowed the WLAN to be activated when it was deactivated by the provider.

@compcold
Copy link

compcold commented Dec 3, 2023

Hi there,

To get the script to work with OpenSSH_9.5p1, I needed to add a couple options:

OPTIONS="-o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss ... "

Also needed to un-comment this line in /etc/ssh_config
#Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aex128-cbc,3des-cbc

Thanks for the script, has been super helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment