Skip to content

Instantly share code, notes, and snippets.

@vithalsamp
Created February 26, 2018 09:33
Show Gist options
  • Save vithalsamp/14ae504798aa1997e69fb82b6999f92f to your computer and use it in GitHub Desktop.
Save vithalsamp/14ae504798aa1997e69fb82b6999f92f to your computer and use it in GitHub Desktop.
vithal@vithal-Inspiron-3558:~$ pwd
/home/vithal
vithal@vithal-Inspiron-3558:~$ vi .pgpass
vithal@vithal-Inspiron-3558:~$ chmod 600 .pgpass
vithal@vithal-Inspiron-3558:~$ ls -la .pgpass
-rw------- 1 vithal vithal 97 Nov 30 19:13 .pgpass
vithal@vithal-Inspiron-3558:~$ more .pgpass
vithalxxxxx.xxxxxx.us-east-2.redshift.amazonaws.com:5439:training:trainee:trainee
vithal@vithal-Inspiron-3558:~$ sudo -i -u postgres
[sudo] password for vithal:
postgres@vithal-Inspiron-3558:~$ psql
psql (9.3.20)
Type "help" for help.
postgres=#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment