The headline seems like a distinction without a difference. Bypassing ssh auth means getting a root shell. There is no significant difference between that and running system(). At most maybe system() has less logging.
Only if you're allowed to login as root, which is definitely not the case everywhere.