Verify the Topology
Verify that the resources that you defined in the Terraform configuration are created, test SSH access to the bastion host, and verify access to the private compute instances.
Verify the Resources Deployed
Check whether all the resources you specified in the Terraform configuration were created.
Verify SSH Access to the Bastion Host from a UNIX-Like System
ssh -i privateKeyPath opc@bastionPublicIPaddress
privateKeyPath
: The full path and name of the file containing the private SSH key corresponding to the public SSH key that you specified for the bastion host.bastionPublicIP
: The public IP address of the bastion host.
ssh -i /home/joe/.ssh/id_rsa_bastion opc@203.0.113.51
When prompted, confirm that you want to connect to the host. The IP address is added to the list of known hosts and a secure connection is established.
Verify SSH Access to the Bastion Host from a Microsoft Windows Client
- Start PuTTY.
- In Host Name (or IP address) field, enter the public IP address of the bastion host.
- Confirm that the Connection type option is set to SSH.
- In the Category tree, expand Connection, and then click Data.
- In the Auto-login username field, enter opc.
- In the Category navigation pane on the left, expand SSH and then click Auth.
- Click the Browse button near Private key file for authentication, and select the file that contains the private key corresponding to the public SSH key that you specified for the bastion host.
- In the Category navigation pane on the left, click Session.
- Click Open.
- At the prompt to confirm the public key, click Yes.
Verify Connectivity to the Private Microsoft Windows Server Instances
The private compute instances in the topology can't be accessed from the public internet. You can connect to them through the bastion host, as the opc
user.
- The public IP address of the bastion host.
- The private IP address and initial password for the private compute instance that you want to connect to.
terraform output
Then, complete the following steps: