Difference between revisions of "Ssh tunnel"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
  
 
* <code>[[ssh -L]]</code>
 
* <code>[[ssh -L]]</code>
 +
* <code>[[~/.pg service.conf]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 09:44, 6 February 2023


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

ssh -L 1111:localhost:5432 [email protected]
psql -h localhost -p 1111 -U your-db-username database-name


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


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

See also

Advertising: