Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
don't use static paths for binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
iojcde committed Aug 17, 2021
1 parent 6ffde8e commit e741440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func init() {
// SSH into VM
func sshVM(vm aarch64.VM) {
if ipv6able() {
cmd := exec.Command("/usr/bin/ssh", strings.Split(fmt.Sprintf("root@%v", vm.Address), "/")[0])
cmd := exec.Command("ssh", strings.Split(fmt.Sprintf("root@%v", vm.Address), "/")[0])
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand All @@ -145,7 +145,7 @@ func sshVM(vm aarch64.VM) {

} else {
fmt.Printf("establishing connection to %v through a SSH jump server...\n\n", strings.Split(fmt.Sprintf("root@%v", vm.Address), "/")[0])
cmd := exec.Command("/usr/bin/ssh", "-J", fmt.Sprintf("jump@%v%v.infra.aarch64.com", vm.PoP, vm.Host), strings.Split(fmt.Sprintf("root@%v", vm.Address), "/")[0])
cmd := exec.Command("ssh", "-J", fmt.Sprintf("jump@%v%v.infra.aarch64.com", vm.PoP, vm.Host), strings.Split(fmt.Sprintf("root@%v", vm.Address), "/")[0])
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit e741440

Please sign in to comment.