-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
26 lines (11 loc) · 1.43 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
output "SSH_login" {
value = <<END
Bastion: ssh -i ~/.ssh/id_rsa ${var.ssh_user}@${oci_core_instance.bastion.*.public_ip[0]}
ssh -i ${var.ssh_private_key_path} -o BatchMode=yes -o StrictHostkeyChecking=no -o ProxyCommand="ssh -i /home/${var.ssh_user}/.ssh/id_rsa -o BatchMode=yes -o StrictHostkeyChecking=no ${var.ssh_user}@${oci_core_instance.bastion.*.public_ip[0]} -W %h:%p %r" ${var.ssh_user}@${oci_core_instance.ComputeNode.*.private_ip[0]}
ssh -i ${var.ssh_private_key_path} -o BatchMode=yes -o StrictHostkeyChecking=no -o ProxyCommand="ssh -i /home/${var.ssh_user}/.ssh/id_rsa -o BatchMode=yes -o StrictHostkeyChecking=no ${var.ssh_user}@${oci_core_instance.bastion.*.public_ip[0]} -W %h:%p %r" ${var.ssh_user}@${oci_core_instance.ComputeNode.*.private_ip[1]}
END
}
/*
ssh -i ${var.ssh_private_key_path} -o BatchMode=yes -o StrictHostkeyChecking=no -o ProxyCommand="ssh -i /home/${var.ssh_user}/.ssh/id_rsa -o BatchMode=yes -o StrictHostkeyChecking=no ${var.ssh_user}@${oci_core_instance.bastion.*.public_ip[0]} -W %h:%p %r" ${var.ssh_user}@${oci_core_instance.ServerNode.*.private_ip[0]}
ssh -i ${var.ssh_private_key_path} -o BatchMode=yes -o StrictHostkeyChecking=no -o ProxyCommand="ssh -i /home/${var.ssh_user}/.ssh/id_rsa -o BatchMode=yes -o StrictHostkeyChecking=no ${var.ssh_user}@${oci_core_instance.bastion.*.public_ip[0]} -W %h:%p %r" ${var.ssh_user}@${oci_core_instance.ServerNode.*.private_ip[1]}
*/