Question : Problem: Access MSSQL remotely through SSH

I have a MSSQL server on my internal network (port 1433), but no ports are accessible externally.  I have a linux server also on my internal network, whose SSH port 22 IS accessible externally.

How can I efficiently query my SQL server from an external Windows machine?  I am okay with any tunneling/forwarding options (as long as I can still SSH to my linux box on port 22).

Answer : Problem: Access MSSQL remotely through SSH

From the client, do

ssh -L 1433:windows.server:1433 [email protected]


Then you access the sql server via localhost:1433

You can change the port number to be whatever you want on the client
Random Solutions  
 
programming4us programming4us