7/2/2023 0 Comments Ssh tunnel postgres![]() Note: you could eventually identify the remote server by its domain name, such as in execute the above command: you'll be asked for the password corresponding to the user you've specified. specifies the user name and the IP address of the remote server.In other words, you will now be able to connect any PostgreSQL client to the local port 12345, and a connection to the remote PostgreSQL will be magically established.Īnd this PostgreSQL connection will be robustly cyphered, thus ensuring maximum safety. an SSH Tunnel like this will forward your local port 54321 directly to the PostgreSQL instance listening on port 5432 of the server.5432 is the canonical port listened by PostgreSQL on the remote server. ![]() 54321 is the IP port on your local machine.54321:localhost:5432 specifies the Port Forwarding configuration. ![]()
0 Comments
Leave a Reply. |