2
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 trouble) if this problem persists...
EDIT: This is a ReadyNAS Ultra 2 Plus that I am working on.
Probably out of the question, but can you reset the device? What kind of NAS is it exactly (model no.)? Does it have a web interface? – slhck – 2012-08-09T17:54:16.280
@slhck resetting the device would be hard to do, our finance files are on there, and so I can't reboot while they are being worked on (which is almost always). It DOES have a web interface, although I'm not sure if I can run commands from it. – diracdeltafunk – 2012-08-09T17:58:35.430
@slhck I was not able to login as root to the web interface... I got one user login to work but it has no privileges. – diracdeltafunk – 2012-08-09T18:08:55.417
Hm. I believe the only way would be to reset the device, which shouldn't touch any data on it. Can't you schedule any outage or maybe do it on a weekend? At least that's what we used to do back in our smaller office. – slhck – 2012-08-09T18:24:54.780
I think the web interface is 'admin', not 'root' (the default password is 'netgear1') – charlesbridge – 2012-08-09T19:01:02.553
@charlesbridge Thanks for that, however, "Admin" with the root password did not work... – diracdeltafunk – 2012-08-09T19:02:52.610