github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/ssh/ssh_posix.go (about) 1 //go:build !windows 2 3 package ssh 4 5 import ( 6 "os/exec" 7 ) 8 9 // sshCommandPathForPlatform searches for the ssh command in the user's path. 10 func sshCommandPathForPlatform() (string, error) { 11 return exec.LookPath("ssh") 12 } 13 14 // scpCommandPathForPlatform searches for the scp command in the user's path. 15 func scpCommandPathForPlatform() (string, error) { 16 return exec.LookPath("scp") 17 }