Ssh

From I Will Fear No Evil
Revision as of 10:37, 15 April 2025 by Chubbard (talk | contribs) (Created page with "== SSH examples for abnormal tasks == Yes, I can never remember exactly how to get the !#$!@# port forwarding done correctly. Bah! ===SSH port forwarding for postgres=== * Accounting for possibility of using abnormal ssh ports and strange ssh keys. * Connect pgadmin to localhost:5432 and set your authentication <pre> export KEY=~/.ssh/some_key export PORT=2345 export JUMPBOX=192.168.15.58 ssh -i ${KEY} -p ${PORT} -L 5432:192.168.15.250:5432 SSH_USER@$${JUMPBOX} -N </p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SSH examples for abnormal tasks

Yes, I can never remember exactly how to get the !#$!@# port forwarding done correctly. Bah!

SSH port forwarding for postgres

  • Accounting for possibility of using abnormal ssh ports and strange ssh keys.
  • Connect pgadmin to localhost:5432 and set your authentication
export KEY=~/.ssh/some_key
export PORT=2345
export JUMPBOX=192.168.15.58
ssh -i ${KEY} -p ${PORT} -L 5432:192.168.15.250:5432 SSH_USER@$${JUMPBOX} -N