You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
402 B
24 lines
402 B
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !js && !windows
|
|
|
|
package cli
|
|
|
|
import (
|
|
"errors"
|
|
"os"
|
|
"os/exec"
|
|
"syscall"
|
|
)
|
|
|
|
func findSSH() (string, error) {
|
|
return exec.LookPath("ssh")
|
|
}
|
|
|
|
func execSSH(ssh string, argv []string) error {
|
|
if err := syscall.Exec(ssh, argv, os.Environ()); err != nil {
|
|
return err
|
|
}
|
|
return errors.New("unreachable")
|
|
}
|
|
|