Difference between revisions of "Ssh tunnel"

From wikieduonline
Jump to navigation Jump to search
Line 19: Line 19:
 
== Related ==
 
== Related ==
 
* <code>[[ssh -L]]</code>
 
* <code>[[ssh -L]]</code>
 +
* <code>[[ssh -R]]</code>
 
* <code>[[~/.pg_service.conf]]</code>
 
* <code>[[~/.pg_service.conf]]</code>
 
* [[Reverse SSH tunneling]]
 
* [[Reverse SSH tunneling]]

Revision as of 12:40, 25 January 2024

TOMERGE: Reverse SSH tunneling

https://stackoverflow.com/questions/16835761/postgresql-via-ssh-tunnel

Run on your jump server or bastion host:

Connecto to the tunnel:

  • psql -h localhost -p 1111 -U your-db-username database-name


ssh -N -f -L 1111:localhost:5432 [email protected]


Errors

2023-02-03 17:06:31.995 UTC [36921] postgres@postgres DETAIL:  User "postgres" has no password assigned

Related

See also

Advertising: