mirror of
https://github.com/IntenseWebs/servercode.git
synced 2024-07-04 11:23:00 -05:00
Compare commits
2 Commits
77cacfdd92
...
d20f94c765
Author | SHA1 | Date | |
---|---|---|---|
|
d20f94c765 | ||
|
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?
|
||||
|
|
9
grub.txt
9
grub.txt
|
@ -51,3 +51,12 @@ insmod part_gpt
|
|||
insmod fat
|
||||
search --no-floppy --fs-uuid --set=root EFC8-2865
|
||||
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
||||
|
||||
_______________________________________________________________________
|
||||
sudo apt-get update
|
||||
sudo apt-get install --reinstall grub
|
||||
sudo apt-get dist-upgrade
|
||||
sudo apt-get upgrade
|
||||
sudo apt autoremove
|
||||
|
||||
Then reboot and try running apt-get dist-upgrade again, the issue should be resolved.
|
||||
|
|
|
@ -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
|
||||
|
|
19
postgresql-pgadmin4.txt
Normal file
19
postgresql-pgadmin4.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
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 adduser MYUSERNAME
|
||||
sudo usermod -aG sudo MYUSERNAME
|
||||
su - MYUSERNAME
|
||||
sudo usermod -a -G www-data $USER
|
||||
|
||||
sudo apt remove curl
|
||||
|
Loading…
Reference in New Issue
Block a user