Skip to content

Instantly share code, notes, and snippets.

@erranddev
erranddev / file.txt
Created March 12, 2024 05:28 — forked from abhianair/file.txt
Remotely connecting to digital ocean postgresql server using pgadmin
1) Login to your droplet with super admin privilage.
2) Navigate to /etc/postgresql/{version}/main.
3) open postgresql.conf sudo nano postgresql.conf
add line
listen_addresses = '*'

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.