ssh run single command

C++
ssh -t [email protected] 'top'
Source

Also in C++: