Created
March 2, 2021 09:22
-
-
Save breyer/2bca7d8535de785db67e95cf07e98f53 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 |
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
If I remember correctly, this allowed the WLAN to be activated when it was deactivated by the provider.