SSH + command

Hi,

i want to execute command through SSH - firstly connect to another RB, and then run command.
My script now looks like this:

:system ssh user=…;
:tool send e-mail from=…;

In this case, RB connect successfully, but thats all.