sshd won't start

Please post questions that doesn't fall into the above categories here.

sshd won't start

Postby mrmilo » Mon Jun 11, 2012 4:55 am

I'm a happy user of the ReadyNAS Ultra 6. Last month I updated RAIDiator from 4.2.20.[T32] to 4.2.20. I used to have ssh enabled. 2 weeks after the update I tried to login to ssh again but no connection available. Checking the NASinfo page of NASmon I noticed sshd was not running so I thought i'd enable it again using toggle_ssh. First a got the message it was disabled so i started it again to enable it. To bad, it did not work. Removed all add-ons. Update RAIDiator to the same version again (this time with more patience), stil nothing. Browsed through all the log (didn't know what to look for) but nothing out of the ordinairy. I found a config file on the forum that might help by resetting the daemon settings to default. Again nothing.

Although the NAS is still working as it should i'd still like access to the ssh :(

The last thing I was doing was trying to get couchpotatoserver in the crond for autostart. I really cannot think of anything i did wrong to wreck the sshd then again I cannot imagine it is to blame the update. I'm pretty lost now. Anyone any idea's? Isn't there a log file where the error is logged, if there is an error.
mrmilo
ReadyNAS Newbie
 
Posts: 18
Joined: Mon Aug 29, 2011 5:21 am
ReadyNAS: Ultra

Re: sshd won't start

Postby mdgm » Mon Jun 11, 2012 4:58 am

Try re-installing EnableRootSSH. Also remember to login as "root" not "admin"

What happens when you attempt to SSH in?
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28586
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: sshd won't start

Postby mrmilo » Mon Jun 11, 2012 5:08 am

Tried that too multiple times. Just did it once more.Re-booted. Still no go. NASinfo still states sshd as down.

Putty gives an error [Network error: Connection refused]. Ofcourse that is true because the sshd is still not running.
mrmilo
ReadyNAS Newbie
 
Posts: 18
Joined: Mon Aug 29, 2011 5:21 am
ReadyNAS: Ultra

Re: sshd won't start

Postby TeknoJnky » Mon Jun 11, 2012 6:36 am

first of all toggle ssh is for support remote access, you need ENABLEROOTSSH addon to enable ssh access

there are at least 2 other possiblities that I can think of...

are you using dhcp? are you sure the nas ip has not changed and/or you are connecting to the right ip?

did you have SSH port mapped to the internet? did you have a weak or default password? it is possible that you got 'rooted' or hacked in linux terms.

if you can still access frontview, you could try reinstalling 4.2.10

if that does not work, you could try a FIRMWARE REINSTALL from the BOOT MENU (note: do NOT do a FACTORY DEFAULT) check the FAQ link above on how to access the boot menu

boot menu firmware reinstall will reset the network settings back to default ie dhcp or 192.168.168.168 and should reset the ssh daemon, along with the admin/root password
nv+ ~ 1gb ram ~ 4x WDC WD20EARS-00S8B1 ~ 5555 GB
ultra4 ~ 4 gb ram ~ 2x ST31500341AS ~ 2x ST4000DX000-1C5160 ~ 6471 GB
pro business ~ 4gb ram ~ dual redundancy ~ 4x Hitachi HDS724040ALE640 ~ 2x SAMSUNG HD204UI ~ 9130 GB
A/V streaming ---> Subsonic ---> EVO 3D
User avatar
TeknoJnky
ReadyNAS Addict
 
Posts: 2909
Joined: Mon Oct 13, 2008 1:34 pm
Location: MO
ReadyNAS: Pro

Re: sshd won't start

Postby mrmilo » Mon Jun 11, 2012 7:01 am

I know that using ssh has it's risks, i did however had ssh access mapped over the internet. As soon as the problems started i removed all mappings. My password is considered strong. I did consider the possibility i was hacked (any chance of finding that out via the logs e.a. weird ip adress connection on ssh??). Thanks to the nasinfo add-on i can still see what processes are running and which connections are made. Nothing weird to see there so if i was 'hacked' it sure was useless but maybe the hacker made a mistake and disabled my sshd beyond normal repair?!? Still a lot of maybe's. I'd really like to confirme things using logfiles. I can find many log files but they contain so much info i don't know where to start looking.

Will a firmware reinstall from the boot menu destroy my shares? And more important my Timemachine vault? (I can't risk to loose the timemachine as i'm waiting on a repair of my Macbook Pro).
mrmilo
ReadyNAS Newbie
 
Posts: 18
Joined: Mon Aug 29, 2011 5:21 am
ReadyNAS: Ultra

Re: sshd won't start

Postby readysecure1985 » Mon Jun 11, 2012 9:19 am

OS reinstall does not erase your data. Factory default does.
NETGEAR ReadyNAS Support
Contact Information: http://support.netgear.com/general/contact/default.aspx
(US/Canada) 1-888-NETGEAR or 1-855-PRO-SAFE / (UK) +44(0)8448 75 4000
readysecure1985
NETGEAR Support
 
Posts: 758
Joined: Wed Jul 13, 2011 10:20 am
ReadyNAS: RN516

Re: sshd won't start

Postby mrmilo » Thu Jul 19, 2012 5:22 am

Some time has past now. I was waiting for my new MacBook to arrive before messing with the NAS even though it would not destroy my shares. I really needed to restore my timemachine backup before continuing.
So last week a got my new MacBook and the first thing to do was to restore my backup. Ok...OSX not telling me a TimeMachine was found on the network...ok...open preferences...no time machine found....ok....browse for other time machine....NOTHING WTF! I just pissed my pants. Scared i did lose all my photo's after all. Take a deep breath...reboot NAS...change pants...still nothing not even the NAS is showing in the OSX network browser. Wait. Maybe its a problem with the Bonjour protocol...stopped it...started it...still nothing. Meh. Reboot another time...nothing. Even tried to re-update but still nothing. So not only de sshd stopped working but also the bonjour service is broken.
Thankfully a could connect to the NAS manually and browse the shares using the CIFS(?) protocol. Browsed to my files share to install some programs and to my delight saw a time machine image file right there in my share!! Double-click to mount and find and copy my photo files after all. I took a beer to that!

To summarize: sshd is broken, bonjour is broken but got my files back and now to try the OS reinstall. To be continued...
mrmilo
ReadyNAS Newbie
 
Posts: 18
Joined: Mon Aug 29, 2011 5:21 am
ReadyNAS: Ultra

Re: sshd won't start

Postby mdgm » Thu Jul 19, 2012 5:39 am

What add-ons do you have installed?

If the OS Re-install doesn't fix things:

Have you made changes to /etc/ssh/sshd_config? If so try the steps here: Restoring SSH Access

Are you still running 4.2.20? Do note that there is a newer firmware 4.2.21 (http://www.readynas.com/RAIDiator_x86_4_2_21_Notes). You might find it helps to update to this firmware.

Keep us updated on your progress.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28586
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: sshd won't start

Postby mrmilo » Thu Jul 19, 2012 6:03 am

- I was on 4.2.21 firmware allready. (update takes forever to finish by the way)
- I never made changes to sshd_config but allready tried to restore using that file.

add-ons: git/sabnzb/couchpotato/sickbeard/plex/nasmonitor/php/python/transmission
Was trying to get ownCloud running...

Next to try is the OS reinstall...will keep you posted.
mrmilo
ReadyNAS Newbie
 
Posts: 18
Joined: Mon Aug 29, 2011 5:21 am
ReadyNAS: Ultra

Re: sshd won't start

Postby mrmilo » Sat Jul 21, 2012 9:10 am

OS reinstall did not help :( guess i'll have to do a factory reset. Have cleanup the shares and move some data. Gonna take some time.
mrmilo
ReadyNAS Newbie
 
Posts: 18
Joined: Mon Aug 29, 2011 5:21 am
ReadyNAS: Ultra

Re: sshd won't start

Postby mrmilo » Sun Jul 22, 2012 6:29 am

Ok, did a factory reset and now everything is back to normal again. Moved the data back, reinstalled all my add-ons (my version of sick beard did not work anymore so i'm running from source now...). Setup everything again. Much work, unhappy girlfriend but all is well. To bad i will never know what caused the problems...
*case closed*
mrmilo
ReadyNAS Newbie
 
Posts: 18
Joined: Mon Aug 29, 2011 5:21 am
ReadyNAS: Ultra


Return to General Questions (English)



Who is online

Users browsing this forum: No registered users and 5 guests