No SSH access to a Dir-615 router running DD-Wrt firmware

dd-wrtroutersshsshd

My current network setup consists of a D-link dir-615D1 flashed with DD-Wrt (v24 PreSp2 Build21061). This is hooked up directly to a Windows 7 PC with an Ethernet cable (With no internet access).

I have been having trouble accessing my router using SSH (I can still access Telnet though).

I reset the router to defaults, the only settings I changed was in:
192.168.1.1/Services.asp

  • Enabled SSHd (Using default settings)

After I set this I rebooted the router and tried to access SSH through Putty and WinSCP.

A moment after trying to open the connection I just received an error from both PUTTY and WINSCP: "Server unexpectedly closed network connection".

Could someone please offer me some assistance (I'm a bit of a novice but I'm sure it was going to work).

Perhaps the firmware didn't flash correctly?
or I need to do this?

I also tried a 30/30/30 reset and that didn't seem to fix it either.

Is there a way to debug the problem using Telnet?


More info:

Here is a screenshot of me trying to login with plink.exe using SSH followed by telnet.

enter image description here

Update: I downgraded to DD-WRT v24-sp2 revision 15778 and SSH now works.

enter image description here

Best Answer

This appears to be a problem with this version of the firmware. I have the exact same version and ssh access is not working for me either.

There are a couple of threads about this exact problem on the DD-WRT forums -- see http://www.dd-wrt.com/phpBB2/viewtopic.php?p=768261 and http://www.dd-wrt.com/phpBB2/viewtopic.php?p=758332 for more info. One commenter in the second thread says that "Build 21061 is KNOWN to have problems w/ SSH. Avoid it. Try another build."

These suggest that downgrading to version 20675 on a DIR-600 router (or build 19519 on an unspecified device) solved the problem, or that upgrading to a newer version should also work.

The main problem is that there are going to be bugs in different build versions, and there are occasionally regressions, of which ssh failing on this build appears to be one.

Just make sure that whatever build you use is compatible with your hardware version! Unfortunately the DD-WRT router database doesn't suggest any other versions for that particular model :(

(I'll update this if I try a different version and have some success :)

Related Question