I have a debian server that is hosting multiple services in docker containers. One of these services is a MS SQL Server, which I connect/ use on my local network and now am trying to access from a remote network.
I have enabled/configured openSSH on the host and have been able to connect to the system on my local environment. I've also been able to establish a connection on port 22 remotely after forwarding the ports on my router/firewall.
However when I try to access the SQL Server which is listening on another port the connection times out. I've forwarded the port in PuTTY as outlined in this article and in my SSMS I use 127.0.0.1,2021 (local listener). The remote port has also been forwarded on the router as demonstrated in this tutorial.
In desperation, I've also tried to use dynamic port forwarding (covered in this tutorial) which also failed. I don't think that is what I'm going for but wanted to try everything before posting.
Even though I appear to be able to establish a remote SSH connection, I cannot establish a connection with the database. Is there something that needs to be configured in openSSH or docker/portainer? Please advise. Thanks!
edit: Is this the same problem I am having? access host's ssh tunnel from docker container As I read through this post it seems like it is having a connection issue from the other direction.