login without PWD: add PC A's public key to PC B's authorized keys.
> a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
> b@B's password:
Run command remotely
ssh root@MachineB "ls"
NOTE: running commands remotely is dangerous since there might be some ENVIRONMENT conflicts.