Added the ssh commands to connect

This commit is contained in:
Michele Cereda
2023-02-11 21:45:25 +01:00
parent 39beecbdb2
commit 0fe64e9d77

View File

@@ -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