Ssh
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