diff --git a/helper/communicator/config.go b/helper/communicator/config.go index d89a0ac27..5ecbdfc65 100644 --- a/helper/communicator/config.go +++ b/helper/communicator/config.go @@ -184,6 +184,10 @@ func (c *Config) prepareSSH(ctx *interpolate.Context) []error { c.SSHFileTransferMethod)) } + if c.SSHBastionHost != "" && c.SSHProxyHost != "" { + errs = append(errs, errors.New("please specify either ssh_bastion_host or ssh_proxy_host, not both")) + } + return errs }