Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

  1. The line I added to my SSH config file caused the whole thing file to not work, and is now denying access to everyone.
  2. 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.
  3. 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.

share|improve this question
    
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 Aug 9 '12 at 17:54
    
@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. –  Ben7005 Aug 9 '12 at 17:58
    
@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. –  Ben7005 Aug 9 '12 at 18:08
    
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 Aug 9 '12 at 18:24
    
I think the web interface is 'admin', not 'root' (the default password is 'netgear1') –  charlesbridge Aug 9 '12 at 19:01
show 1 more comment

1 Answer

up vote 3 down vote accepted

you'll probably need to do an OS / Firmware re-install. Posts on the ReadyNAS forums on how to do this. An add-on is available called EnableRootSSH that will enable root access to your NAS, but i haven't seen anyone attempting to set up SSH for a standard user on their NAS or even know if it's possible.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.