NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
tuxEvangelist
Dec 06, 2021Aspirant
EnableSSH - Locked out from SSH
Dear All, I've installed EnableSSH on my Duo v2 successfully and was able to use it with the root account. While trying to enable ssh access to other users, I unfortunately locked root out before ma...
- Dec 07, 2021
tuxEvangelist wrote:
Thanks for the quick reply, I managed to get into tech support mode and telnet to the Duo v2, but unfortunately the files of the ssh configuration are not present in this state. Is there a chance that I can mount other parts of the filesystem that contain the config files of the plugins that are installed?
Yes, you need to mount the real OS partition.
I've never owned a v2. but I believe these commands will work/
# start_raid.sh # mount /dev/md0 /sysroot
Not sure if you'll also need to chroot to get the commmands you need, but if you do try these commands:
# mount --bind /proc /sysroot/proc # mount --bind /dev /sysroot/dev # mount --bind /dev/pts /sysroot/dev/pts # mount --bind /sys /sysroot/sys # chroot /sysroot /bin/bash
StephenB
Dec 06, 2021Guru - Experienced User
tuxEvangelist wrote:
Is there any way to reset only the ssh config without possibly running into problems on the Web UI side?
You can get into the OS using tech support mode. You'd be on your own after that though.
tuxEvangelist
Dec 06, 2021Aspirant
D
Is there any way to reset only the ssh config without possibly running into problems on the Web UI side?
> You can get into the OS using tech support mode. You'd be on your own after that though.
Thanks for the quick reply, I managed to get into tech support mode and telnet to the Duo v2, but unfortunately the files of the ssh configuration are not present in this state. Is there a chance that I can mount other parts of the filesystem that contain the config files of the plugins that are installed?
And, BTW what is the way to gracefully shutdown the system from tech support mode? Pulling the plug is the only way I've found and that really hurts me every time :-o
- StephenBDec 07, 2021Guru - Experienced User
tuxEvangelist wrote:
Thanks for the quick reply, I managed to get into tech support mode and telnet to the Duo v2, but unfortunately the files of the ssh configuration are not present in this state. Is there a chance that I can mount other parts of the filesystem that contain the config files of the plugins that are installed?
Yes, you need to mount the real OS partition.
I've never owned a v2. but I believe these commands will work/
# start_raid.sh # mount /dev/md0 /sysroot
Not sure if you'll also need to chroot to get the commmands you need, but if you do try these commands:
# mount --bind /proc /sysroot/proc # mount --bind /dev /sysroot/dev # mount --bind /dev/pts /sysroot/dev/pts # mount --bind /sys /sysroot/sys # chroot /sysroot /bin/bash
- tuxEvangelistDec 07, 2021Aspirant
[...]
> Yes, you need to mount the real OS partition.
> I've never owned a v2. but I believe these commands will work/
# start_raid.sh # mount /dev/md0 /sysroot
> Not sure if you'll also need to chroot to get the commmands you need, but if you do try these commands:
# mount --bind /proc /sysroot/proc # mount --bind /dev /sysroot/dev # mount --bind /dev/pts /sysroot/dev/pts # mount --bind /sys /sysroot/sys # chroot /sysroot /bin/bash
PHEW! That worked and you're seeing one really delighted user over here. After the mounts I was able to correct the ssh config and I could log back in as root. What I initially wanted to do was to enable a normal user to ssh into the NAS. I've seen another discussion somewhere around here how to do that, so this time I'll read that closely before changing ANYTHING, promise ;)
Thanx a ton, that really saved me!!!
- StephenBDec 07, 2021Guru - Experienced User
I'm glad we could help.
Related Content
NETGEAR Academy

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