Add code for remote command execution.
Fix public key authentication.