# open a remote database psql -h hostname dbname username
# connect to database at remote host on port with username psql -h -p -U
# connect to a database that already exists psql -d database_name