Skip to content

Instantly share code, notes, and snippets.

@Fray117
Last active January 21, 2025 16:34
Show Gist options
  • Select an option

  • Save Fray117/8c0102b420074a92ae02efbf3b508142 to your computer and use it in GitHub Desktop.

Select an option

Save Fray117/8c0102b420074a92ae02efbf3b508142 to your computer and use it in GitHub Desktop.

SSH

Always change your default port, look for Port on sshd_config and change with your desired port like this.

Port 2244

Postgres & Docker

To allow connection from Docker container, put on pg_hba.conf with this configuration.

host    all             all             172.16.0.0/12           scram-sha-256

We usually forgot to grant usage for schema, https://stackoverflow.com/a/67276542.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment