<p><strong><em>It is possible on the Linux(Unix) bastion host.</em></strong></p>

<p>Step-1: First ssh to the bastion host. <em>eg. 16.23.14.20 is the bastion host.</em></p>

<pre><code># ssh root@16.23.14.20
</code></pre>

<p>Step-2: Create port tunneling by using the below command. eg. <em>The RDS IP is 172.16.13.10</em></p>

<pre><code># ssh -L  3006:172.16.13.10:3006 localhost
</code></pre>

<p>Verify using netstat command.</p>

<pre><code>netstat -ntulp | grep 3006
</code></pre>

<p>Note: If netstat command not available. Using <code>sudo apt install -y net-tools</code> or <code>sudo yum install -y net-tools</code></p>

CC BY-SA 4.0
2020-04-17T03:58:15.513Z
2020-04-17T03:58:15.513Z
Arvind Rawat
<p>Forwarding a port 3006 database connection from a bastion server to a RDS database?</p>

<p>Trying to find the answer online I came across the term Proxy jump but can't find anything on proxy jump for 3006 to send a 3006 mysql conection to the bastion on port 3006 to an RDS?</p>

<databases><ports>
What can I use to forward a conection to port 3006 on the bastion to an RDS database?
doug
# What can I use to forward a conection to port 3006 on the bastion to an RDS database?

(Asked by: username_0 on 2020-04-16)

Forwarding a port 3006 database connection from a bastion server to a RDS database?

Trying to find the answer online I came across the term Proxy jump but can't find anything on proxy jump for 3006 to send a 3006 mysql conection to the bastion on port 3006 to an RDS?

**Tags:** databases, ports


---

## 1 answers

### Answer by username_1 on 2020-04-17. Score: 1 | Accepted answer

It is possible on the Linux(Unix) bastion host.
Step-1: First ssh to the bastion host. eg. 16.23.14.20 is the bastion host.
# ssh root@16.23.14.20

Step-2: Create port tunneling by using the below command. eg. The RDS IP is 172.16.13.10
# ssh -L  3006:172.16.13.10:3006 localhost

Verify using netstat command.
netstat -ntulp | grep 3006

Note: If netstat command not available. Using sudo apt install -y net-tools or sudo yum install -y net-tools


---

