ProxyJump for hosts outside of 10.* range

removed unnecessary values for proxy host
This commit is contained in:
miampf 2025-01-02 11:56:14 +01:00
parent 5c24c9d22f
commit 2d66ecf8d6
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -302,16 +302,13 @@ resource "local_file" "ssh_config" {
filename = "./ssh_config" filename = "./ssh_config"
file_permission = "0600" file_permission = "0600"
content = <<EOF content = <<EOF
Host proxy Host ${azurerm_public_ip.loadbalancer_ip[0].fqdn}
HostName ${azurerm_public_ip.loadbalancer_ip[0].fqdn} ProxyJump none
PreferredAuthentications publickey
IdentityFile ./emergency_ssh_key
User root
Host 10.* Host *
PreferredAuthentications publickey PreferredAuthentications publickey
IdentityFile ./emergency_ssh_key IdentityFile ./emergency_ssh_key
User root User root
ProxyJump proxy ProxyJump ${azurerm_public_ip.loadbalancer_ip[0].fqdn}
EOF EOF
} }