I was able to telnet into an D-Link router in the default state using admin:admin, but using the same username and password, I wasn't able to ssh into it (from the same LAN) eventhough ssh is open.
3 Answers
I have a D-Link DSL-2750U H/W rev. U1 with firmware version ME_1.11 and found that the SSH option simply doesn't exist anywhere in the router's web configuration.
But nmap does indeed list the ssh port as open.
After some trial and error, I was able to find out that both, the default username and password for the ssh login are root.
I couldn't find an option anywhere that allows me to change this default username/password or disable SSH. (If someone does, you are most welcome, because this SSH access is quite useless otherwise.) Nor did I find any official documentation anywhere that mentions about this SSH feature or the default credentials. (If someone does, please put a link here)
Apparently, the ssh-access is a left-out feature that exists only in some firmware versions in some older D-Link DSL routers. If someone else is able to confirm this works for them, please put your router model and firmware version here.
- 746
This is the way I managed to ssh to my home D-Link ADSL-Router. My model is DSL-2740U.
ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc admin@192.168.1.1
The username/password is the same as you enter to login to the web panel.
- 21
I had to configure my ~/.ssh/config for my D-Link N310 with the following to be able to connect:
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512
Ciphers aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
User username # it depends on your login; this one only for understanding
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
- 266


