DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-03-21 05:44:59

arunbav
Member
Registered: 2009-04-20
Posts: 15

Lost SSH access After Firmware upgrade to 1.8

I have lost my SSH access to my DNS 323.  I saved my settings upgraded firmware from 1.7 to 1.8. Reset to Factory settings and then uploaded my saved settings (this did not seem to work as the settings had to be typed in again manually in the web interface like the time zone etc.) .  I tried to ssh in and now it does not recognise my root password it recognises 'admin' and the password (that I use on the web interface) complains about not finding /home/admin and supposedly goes into the ash shell but is unresponsive after that. Looks like it boots ok as I can see the files on my windows machine and the transmission client comes up but I cannot ssh into or get shell access to the machine. What do I do?

Offline

 

#2 2010-03-21 09:00:37

wortelsoft
Member
From: Netherlands
Registered: 2009-06-08
Posts: 52

Re: Lost SSH access After Firmware upgrade to 1.8

There is a reenable telnet fun_plug on the forum:

http://dns323.kood.org/forum/p19176-Tod … tml#p19176

Use that to gain access again and then generate a new password for root (see installing fun_plug).

I had to do the same and I would recommend everyone to enable telnet before upgrading.

Offline

 

#3 2010-03-21 17:24:50

arunbav
Member
Registered: 2009-04-20
Posts: 15

Re: Lost SSH access After Firmware upgrade to 1.8

Ok That kinda worked :-).Thanks a ton.  But I still have a problem :-(. I got in and changed the root passwd now I get access via SSH  (it used to say access denied before). But now all I get is the following and then the terminal goes dumb (and deaf)

Begin Quote

BusyBox v1.00-pre1 (2009.05.07-06:36+0000) Built-in shell (ash)
Enter 'help' for list of built-in commands.

End Quote

I think somehow the default shell choice or the home directory when I log in via SSH got messed up. Logging in via telnet seems to work ok. Any pointers would be helpful. Thanks

Last edited by arunbav (2010-03-21 17:32:07)

Offline

 

#4 2010-03-21 19:34:18

wortelsoft
Member
From: Netherlands
Registered: 2009-06-08
Posts: 52

Re: Lost SSH access After Firmware upgrade to 1.8

Sorry, can't help you with that.
I just followed how I installed everything and it worked.

Offline

 

#5 2010-03-22 01:11:00

arunbav
Member
Registered: 2009-04-20
Posts: 15

Re: Lost SSH access After Firmware upgrade to 1.8

Okay got it solved by looking at this post

http://dns323.kood.org/forum/viewtopic.php?id=4442

Long story short I needed to execute a chsh command to set the root shell to sh and then execute a store-passwd.sh to make the change permanent.

My question is why would this even happen looks like telnet knows that the root shell is sh so why would not ssh know that. Actually more fundamentally when I upgraded the firmware I did not change the root password but I reset to factory settings and then uploaded my previously stored settings (but it was not successful I wonder why?) If the factory settings had been successful would it have set the root shell properly and set the root passwd??

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB