killed my ssh login need to get to the config file

Soldato
Joined
3 Dec 2002
Posts
4,071
Location
Groovin' @ the disco
Hi,

I was messing around with ssh keys, and I've managed to disable password login for ssh, in a manner that even if I force the correct password it wont allow it.

There's no GUI on the nas box, but I need to access the /etc folder to change the sshd file back to what it was. Any suggestions on how to access this folder as its not shared.

when I try to login via ssh just comes up with Permission denied (publickey).

Thanks in Advance.
 
sorted it with a patch of an update file... looks like there's been a few dumbwits like me that's done this.. lol
 
My issue was very much my own making and the fix I used would only apply if someone else did the same thing on the same range of NAS boxes; so forgive me as I was rather tired and wanted to sleep but since you asked:

I'd edited the sshd_config file so that ssh passwords was refused so it had to use a ssh key file, but the ssh key file didn't work (due to want I think) the folder stucture of the drive, it doesn't use a typical stucture like other linux systems.

Normally I would log in via the GUI and edit the file back but this NAS box don't have a GUI, I spent while trying to access the file as root and admin in different ways and different OSes but the solution was simply run an update patch to restore the sshd_config.

but here's the fix from the unoffical WD forum.
 
Back
Top Bottom