mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added the ssh commands to connect
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user