Connecting to DSL-2740B via ssh

Back again struggling with a stupid issue related to dsl modem.

I was trying to connect to the modem via ssh, but no way to get i work, with ssh i got this log:

debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa
debug2: kex_parse_kexinit: 3des-cbc
debug2: kex_parse_kexinit: 3des-cbc
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: setup hmac-md5
debug1: kex: server->client 3des-cbc hmac-md5 none
debug2: mac_setup: setup hmac-md5
debug1: kex: client->server 3des-cbc hmac-md5 none
debug2: bits set: 539/1024
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY

Server and client don’t share comunication informatin the right way, so the server decides to close the comunicating (Something that happens even with peoples in real life). So the client needs to force some parameters to set up the propre way to comunicate, in fact chipper and algorithm:

The command line becomes this:

ssh -o Ciphers=3des-cbc -o HostKeyAlgorithms=ssh-rsa,ssh-dss 192.168.1.1 -vv -l admin

To remember this configurations i use the .ssh/config

Host router
HostName 192.168.1.1
User admin
Ciphers 3des-cbc
HostKeyAlgorithms ssh-rsa,ssh-dss

 

Lascia un commento

Il tuo indirizzo email non sarĂ  pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.

WP to LinkedIn Auto Publish Powered By : XYZScripts.com