Accessing SQL Server Using An SSH Tunnel
Accessing SQL Server Using An SSH Tunnel
In order to access your server via SSH tunnel you need to have putty installed.
To access the server via SSH tunnel, have the following details handy
o Server FQDN or IP
o Port Number
Open putty and enter the Host Name/IP and Port number. Click enter to open a session.
Once you have you have open the SSH session successfully you need to create an SSH tunnel. For doing so, follow
these steps
In the “Connection -> SSH -> Tunnels” section, create a secure tunnel by forwarding a port (the “destination
port”) on the remote server to a port (the “source port”) on the local host (127.0.0.1 or localhost).
An example of configuring an SSH tunnel between remote server IP is 10.2.2.2 and port is1433. Local port is 1433
is displayed below:
Click the “Add” button to add the secure tunnel configuration to the session. (You’ll see the added port in the list
of “Forwarded ports”). An example of configuring an SSH tunnel between remote port 1433 and local port 1433
is displayed below.
Click the “Open” button to open an SSH session to the server. The SSH session will now include a secure SSH
tunnel between the two specified ports.
While the tunnel is active, you should be able to access the MSSQL server through the secure SSH tunnel you
created, by entering the server name as 127.0.0.1,1433 in the SSMS.