Hi. My terraform code:
variable "servers_ssh_ru_zone" {
type = map(object({
name = string
description = string
address = string
port = string
target_type = string
}))
default = {
schrodinger_1 = {
name = "sch..."
description = "db-api-..."
address = "94...."
port = "22"
target_type = "tcp"
}
...
}
}
resource "boundary_target" "servers_ssh_ru_zone" {
for_each = var.servers_ssh_ru_zone
name = each.value.name
description = each.value.description
type = each.value.target_type
default_port = each.value.port
session_connection_limit = -1
scope_id = boundary_scope.infra_prod_ssh.id
egress_worker_filter = "\"ru\" in \"/tags/region\""
address = each.value.address
}
My ssh config
Host *
ForwardAgent yes
Host ttcp_*
ProxyCommand boundary connect -target-id %n -exec nc -- {{boundary.ip}} {{boundary.port}}
User s.mikhaltsov
IdentityFile /home/metanovii/.ssh/id_rsa
❯ ssh ttcp_w8GIZqve5c
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
❯ boundary connect ssh -target-id ttcp_w8GIZqve5c
ssh: connect to host 127.0.0.1 port 44955: Connection refused
from the side of boundary workers, there is nothing interesting in the logs. I don’t see any ssh connection attempts in the logs on the target server
What I doing wrong?