Difference between revisions of "Ssh tunnel"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
https://stackoverflow.com/questions/16835761/postgresql-via-ssh-tunnel | https://stackoverflow.com/questions/16835761/postgresql-via-ssh-tunnel | ||
− | ssh -L 1111:localhost:5432 [email protected] | + | [[ssh -L]] 1111:localhost:5432 [email protected] |
psql -h localhost -p 1111 -U your-db-username database-name | psql -h localhost -p 1111 -U your-db-username database-name | ||
Revision as of 09:27, 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
2023-02-03 17:06:31.995 UTC [36921] postgres@postgres DETAIL: User "postgres" has no password assigned
- SSH:
ssh
, TLS,.ppk, .pem, .crt, .pub
, ED25519, Key exchange method (KEX), public key, private key,ssh -Q kex
,IAMUserSSHKeys
,known_hosts
, ssh tunnel, Dropbear
Advertising: