I have a remote host
123.456.789 that I am able to SSH into. From within the SSH host, a private database host can be accessed.
I would like to forward my local port on my computer TO the private database host via the remote host (using it as a bastion - if this is the correct terminology).
I'm trying to do:
ssh 3306:my-private-host-database.example:3306 email@example.com ssh: Could not resolve hostname 3306:my-private-host-database.example:3306: Name or service not known
So the issue seems to be that
my-private-host-database.example resolves correctly only on the internal dns of the bastion
Is this possible to be done?