90
80
// runViaJujuSSH will run arbitrary code in the remote machine.
91
81
func runViaJujuSSH(machine, script string, stdout, stderr *bytes.Buffer) error {
92
82
cmd := exec.Command("ssh", []string{"-o StrictHostKeyChecking=no", fmt.Sprintf("ubuntu@%s", machine), "sudo -n bash -c " + utils.ShQuote(script)}...)