pls check this thread - I think I pointed you to the download link a couple of times.
I'd just use
system("/media/realroot/nith_bin > /media/realroot/nikitah");
rather your call.
Not sure what happened to your sshd. Maybe your nikitah takes too much CPU cycles preventing sshd to reply? Was your Arduino connection still ok?