From 0fe64e9d77fd511f06c57ca42509ee81c7575a24 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 11 Feb 2023 21:45:25 +0100 Subject: [PATCH] Added the ssh commands to connect --- .../README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/terraform/oracle cloud/connect using ssh to an instance through a bastion/README.md b/examples/terraform/oracle cloud/connect using ssh to an instance through a bastion/README.md index fbfcba8..57e7f7c 100644 --- a/examples/terraform/oracle cloud/connect using ssh to an instance through a bastion/README.md +++ b/examples/terraform/oracle cloud/connect using ssh to an instance through a bastion/README.md @@ -3,7 +3,7 @@ Simple example to create a Bastion in Oracle Cloud. 1. [Requirements](#requirements) -2. [SSH configuration](#ssh-configuration) +2. [Connect to the instance using SSH through the bastion](#connect-to-the-instance-using-ssh-through-the-bastion) 3. [Further readings](#further-readings) 4. [Sources](#sources) @@ -22,7 +22,9 @@ A solution to this is to create a new Route Table **with** the default route abo ![requirements] -## SSH configuration +## Connect to the instance using SSH through the bastion + +Use this configuration as starting point and fix its values to simplify the command: ```ssh_config Host bastion @@ -44,6 +46,12 @@ Host bastion instance UserKnownHostsFile /dev/null ``` +and now use the following command: + +```sh +ssh -fN bastion && ssh instance +``` + ## Further readings ## Sources