Skip to content

Commit 73439d6

Browse files
authored
Update README.md
1 parent fdd43c8 commit 73439d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ And type `:dba <Enter>` in psql. (Or `\i /path/to/postgres_dba/start.psql` if yo
5353
What to do if you need to connect to a remote Postgres server? Usually, Postgres is behind a firewall and/or doesn't listen to a public network interface. So you need to be able to connect to the server using SSH. If you can do it, then just create SSH tunnel (assuming that Postgres listens to default port 5432 on that server:
5454

5555
```bash
56-
ssh -fNTML 9432:localhost:5432 you-server.com
56+
ssh -fNTML 9432:localhost:5432 sshusername@you-server.com
5757
```
5858

5959
Then, just launch psql, connecting to port 9432 at localhost:

0 commit comments

Comments
 (0)