mirror of
https://github.com/IntenseWebs/servercode.git
synced 2024-11-21 08:24:07 -06:00
Update SSH, Postgres docs
This commit is contained in:
parent
77cacfdd92
commit
c2b117a281
@ -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?
|
||||
|
@ -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
13
postgresql-pgadmin4.txt
Normal 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
|
Loading…
Reference in New Issue
Block a user