I am very new to the Unix/Linux world, and at my workplace, I was trying to set up my user to be able to SSH into the NAS server (our NAS is made by netgear). I had never worked with this particular system before. I was logged in as root, and edited my
/ssh/sshd_config file (
vi /ssh/sshd_config) and appended a line,
AllowUsers [MyUser] (which I now realize was incorrect as I think my ssh is managing authentication with PAM). I rebooted ssh (I think it was openSSH) with
/etc/init.d/ssh reboot, and I got a message about some file not being found.
OK. Here is where I get REALLY stupid.
I don't even look at the message and close my PuTTY window to see if my user account will be able to ssh now (20/20 hindsight makes me feel really stupid here).
I open PuTTY again and try to ssh as my user.
It fails. I'm not too dissapointed, I'm new at Linux and stuff, so I figure I'll just log in as root again and fix things.
Guess what happens next! root login fails...
I have 2 guesses for why mt ssh might be broken:
- The line I added to my SSH config file caused the whole thing file to not work, and is now denying access to everyone.
- The SSH on my server is not simple to reboot, and the previous admin (who now has returned to college for another degree) knew how to work with it.
- A combination of the above.
Since SSH is the only way (I think) to communicate with my server (i tried telnet), and my ssh is broken, what should I do?
EDIT: Any help would be very appreciated, this could get very ugly (and land me in deep shit) if this problem persists...
EDIT: This is a ReadyNAS Ultra 2 Plus that I am working on.