Graduated _ssh_cmd() to a public function ssh_cmd()