You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data.remote_file.config: Reading...
╷
│ Error: unable to open remote client: couldn't establish a connection to the remote server: dial tcp: address ::1:22700: too many colons in address
│
│ with data.remote_file.config,
│ on test.tf line 1, in data "remote_file" "config":
│ 1: data "remote_file" "config" {
│
╵
Expected Behavior
IPv6 without brackets.
Actual Behavior
The "host" connection string is used to add the port number which leads to that error in go's ssh module (see connectio.go#L129)
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
I just ran into the problem. While in other places with "connection" provided, brackets are not necessary, here it is.
I would consider this a bug, even if it is a minor one, thanks to the workaround provided here.
Hello,
it seems that plain IPv6 in the
host
field is unsupported currently.TL;DR: There is a workaround.
The problem is how the connection address is parsed in
connectio.go#L129
.The SSH address for for the go
ssh
module must be in the format[ipv6]:port
with the brackets.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
IPv6 without brackets.
Actual Behavior
The "host" connection string is used to add the port number which leads to that error in go's ssh module (see
connectio.go#L129
)Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Workaround
Add the brackets
[
]
to the host IPv6 address.References
The text was updated successfully, but these errors were encountered: