title: How do I execute a command on a remote machine in a golang CLI?
body: <p>How do I execute a command on a remote machine in a golang CLI? I need to write a golang CLI that can SSH into a remote machine via a key and execute a shell command. Furthermore, I need to be able to do this one hop away. e.g. SSH into a machine (like a cloud bastion) and then SSH into another, internal, machine and execute a shell command.</p>
  
  <p>I haven't (yet) found any examples for this.</p>