NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
jeff36
Jan 03, 2012Aspirant
ssh as admin
Ultra6 with RAIDiator 4.2.19.
I've installed "enableSSH" and the port is open. Using putty from Windows7 gets me the login prompt, but using admin/password closes the ssh window immediately. If I use the wrong password, it prompts me for a retry. I have a couple of addons, but disabling them all did not help. I have never been able to ssh in (over a year). I have updated the firmware twice and reset a few times but the same thing always happens.
Like this (used wrong password once as an example):
login as: admin
admin@10.1.3.1's password:
Access denied
admin@10.1.3.1's password:
auth.log says:
Jan 3 14:27:48 NAS sshd[13121]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Jan 3 14:27:48 NAS sshd[13121]: WARNING: /etc/ssh/moduli does not exist, using fixed modulus
Jan 3 14:27:54 NAS sshd[13121]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.1.3.26 user=admin
Jan 3 14:27:55 NAS sshd[13121]: Failed password for admin from 10.1.3.26 port 51776 ssh2
Jan 3 14:27:59 NAS sshd[13121]: Accepted password for admin from 10.1.3.26 port 51776 ssh2
Any advice?
I've installed "enableSSH" and the port is open. Using putty from Windows7 gets me the login prompt, but using admin/password closes the ssh window immediately. If I use the wrong password, it prompts me for a retry. I have a couple of addons, but disabling them all did not help. I have never been able to ssh in (over a year). I have updated the firmware twice and reset a few times but the same thing always happens.
Like this (used wrong password once as an example):
login as: admin
admin@10.1.3.1's password:
Access denied
admin@10.1.3.1's password:
auth.log says:
Jan 3 14:27:48 NAS sshd[13121]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Jan 3 14:27:48 NAS sshd[13121]: WARNING: /etc/ssh/moduli does not exist, using fixed modulus
Jan 3 14:27:54 NAS sshd[13121]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.1.3.26 user=admin
Jan 3 14:27:55 NAS sshd[13121]: Failed password for admin from 10.1.3.26 port 51776 ssh2
Jan 3 14:27:59 NAS sshd[13121]: Accepted password for admin from 10.1.3.26 port 51776 ssh2
Any advice?
11 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredIt's called EnableRootSSH.
You need to login as 'root' (the superuser) not 'admin'. 'root' password is initially set to be the same as the 'admin' password. However if you've done an OS/firmware re-install the password the password should have been reset to 'netgear1'.
After logging in you can change the password using the passwd command:
MDGM-NAS:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully - jeff36AspirantThanks, but I wanted the non-root login method. I have also tried my user account names, but they all disconnect as well.
Or do you mean that there is no way to login except as root? If so, then I wonder why support did not tell me to enable root access to login during a recent support ticket? I guess I should have asked them at that time, but I had other things on my mind. - mdgm-ntgrNETGEAR Employee RetiredWhat add-on did you install exactly? To enable SSH for login as a user at least initially you need to enable root login.
For support access there are different addons and even a debug mode. - MastacheataAspirantYou can't login as anyone but root, since noone but root has a valid shell set.
If you login as admin you are presented a shell consisting of a boolean false value, which is pretty much useless and will cause your ssh client to close the session immediately.
You could change that to allow other users ssh access.
This command allows shell access to the user with the name: USERNAME with the same password as it was set up using frontview.usermod -s/bin/bash USERNAME
This should however only be done if you are sure that you need shell access for that user. You can do many many bad things with shell access. - jeff36AspirantOk, thanks! That explains the failure of the shell. Obviously I am not a *nix guru.
I had thought that enablessh was all that was needed for non-root access, but there is not much documentation on that. I guess that VMware has some proprietary way to ssh in without EnableRootSSH being installed.
I had thought that there was a way to ssh in without doing it as root, but now that I know more, going in as root is acceptible. I have installed EnableRootSSH and that works fine.
Thanks for the explanation! jeff36 wrote: I guess that VMware has some proprietary way to ssh in without EnableRootSSH being installed.
huhwhaaat?
vmware does not and should not have some proprietary way to ssh in.
why would you expect vmware to need ssh?- jeff36Aspirant> vmware does not and should not have some proprietary way to ssh in.
> why would you expect vmware to need ssh?
Because they told me to run enablessh, give them the MAC address of the NAS and make my router forward a port to the NAS ssh port. That's all that they needed to access the nas, somehow. I had not run EnableRootSSH at that time. - mdgm-ntgrNETGEAR Employee RetiredThey made a special add-on called EnableSSH? Never heard of that one before. The add-on they gave you would've been one for support use only as the only SSH add-on enabling SSH access for users is EnableRootSSH as I mentioned above.
- jeff36AspirantSorry, I made a typo. It's the one mentioned on the bottom of this page called ToggleSSH:
http://www.readynas.com/?page_id=608 - mdgm-ntgrNETGEAR Employee RetiredAh. As indicated on that page and I mentioned above the ToggleSSH add-on is for support access to the ReadyNAS over SSH only. It enables them to remotely login as root (the superuser).
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!