diff --git a/command/ssh/proxycommand.go b/command/ssh/proxycommand.go index 39e7b1f8..65a9d676 100644 --- a/command/ssh/proxycommand.go +++ b/command/ssh/proxycommand.go @@ -300,7 +300,7 @@ func proxyBastion(r registryResponse) error { fields := strings.Fields(r.Bastion.Flags) args = append(args, fields...) } - args = append(args, r.Hostname) + args = append(args, r.Bastion.Hostname) if r.Bastion.Command == "" { args = append(args, r.Bastion.Command) } else {