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
Unfortunately it ignores the settings in ~/.ssh/config that concern the Port directive. For the bastion node and for the host a custom port is specified, but the connection still goes to port 22.
Host <bastion_ip>
Port 12345
User username
Host <libvirt_host>
Port 12345
User username
ProxyJump <bastion_ip>
Error: Error: failed to connect: failed to connect to bastion host '<bastion_ip>': failed to connect to remote host '<bastion_ip>': dial tcp <bastion_ip>:22: connect: connection refused
If I don't use bastion and specify port in uri like this:
provider "libvirt" {
uri = "qemu+ssh://username@<libvirt_host>:12345/system"
}
I get an error: Error: failed to connect: failed to connect to remote host '<libvirt_host>:12345': dial tcp: lookup <libvirt_host>:12345: no such host
The text was updated successfully, but these errors were encountered:
System Information
OS
MacOS 15.0.1
Terraform version
Provider and libvirt versions
Description of Issue/Question
Unfortunately it ignores the settings in ~/.ssh/config that concern the Port directive. For the bastion node and for the host a custom port is specified, but the connection still goes to port 22.
Error:
Error: failed to connect: failed to connect to bastion host '<bastion_ip>': failed to connect to remote host '<bastion_ip>': dial tcp <bastion_ip>:22: connect: connection refused
If I don't use bastion and specify port in
uri
like this:I get an error:
Error: failed to connect: failed to connect to remote host '<libvirt_host>:12345': dial tcp: lookup <libvirt_host>:12345: no such host
The text was updated successfully, but these errors were encountered: