This question already has an answer here:
Ok, then why do you "echo mypassword" ?
Can't you add your SSH account to the sudoers file with
man sudoers :
authenticate If set, users must authenticate themselves via a password (or other means of authentication) before they may run commands. This default may be overridden via the PASSWD and NOPASSWD tags. This flag is on by default.