I currently forward the local port for psql insertions on a remote server manually using the following command on an aws instance:
ssh -L 5432:localhost:5432