Topic: Execute comand in remote server

GREETINGS.

I'm trying to execute a command in a remote server using:
<?php
exec ("rsh root@192.x.x.x command");
?>
unfortunately the remote server require a password.

how i send this parameter?
there are another php functión that allow execute comands in remote server?

Thanks for your help.