Update SSH, Postgres docs

This commit is contained in:
IntenseWebs 2024-02-12 16:21:01 -06:00
parent 77cacfdd92
commit c2b117a281
4 changed files with 16 additions and 1 deletions

View File

@ -46,6 +46,7 @@ ssh-keygen -f "/home/privacy/.ssh/known_hosts" -R "192.168.1.124"
eval "$(ssh-agent -s)"
chmod 600 /c/Users/username/Documents/SETTINGS/id_rsa
ssh-add /c/Users/username/Documents/SETTINGS/id_rsa
ssh-add /directory/my_id_rsa
# To create a systemd ssh-agent service, you need to create a file in ~/.config/systemd/user/ssh-agent.service because ssh-agent is user isolated.
@ -100,4 +101,4 @@ Running ssh-agent OpenSSH Authentication Agent
ssh-add -l
ssh-add -L
Could be multiple things; here are just a couple. 1. If you were using authorized_keys, were they copied to new user on Rocky? 2. Is sshd enabled on Rocky? systemctl status sshd 3. Firewall opened on Rocky? firewall-cmd --add-service=ssh --permanent 4. Permissions need reset on .ssh & authorized_keys; happens a lot more than you may realize. 5. Hopefully not root ssh login? Check /etc/ssh/sshd_config PasswordAuthentication PermitRootLogin Values
Could be multiple things; here are just a couple. 1. If you were using authorized_keys, were they copied to new user on Rocky? 2. Is sshd enabled on Rocky? systemctl status sshd 3. Firewall opened on Rocky? firewall-cmd --add-service=ssh --permanent 4. Permissions need reset on .ssh & authorized_keys; happens a lot more than you may realize. 5. Hopefully not root ssh login? Check /etc/ssh/sshd_config PasswordAuthentication PermitRootLogin Values 6. Is SSH Private Key added to SSH Agent?

View File

@ -1,3 +1,4 @@
https://code.iweb.city/iw/servercode/src/branch/main/postgres-pgadmin-python3-django-gunicorn-nginx
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04
https://tonyteaches.tech/django-nginx-uwsgi-tutorial/
https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-gunicorn/#nginx-cant-access-the-socket

13
postgresql-pgadmin4.txt Normal file
View File

@ -0,0 +1,13 @@
https://computingforgeeks.com/how-to-install-pgadmin4-on-debian/
apt install gnupg gnupg2
echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" | sudo tee /etc/apt/sources.list.d/pgadmin4.list
cat /etc/apt/sources.list.d/pgadmin4.list
curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
sudo apt update
apt install pgadmin4-web
/usr/pgadmin4/bin/setup-web.sh
sudo ufw allow http
sudo ufw allow https
sudo apt remove curl

View File