Ubuntu 24.04 - mglacayo07/serverwiki GitHub Wiki

Setup Server

Tested in ubuntu 24.04

Login to your ubuntu user using ssh credentials Update Server

sudo apt-get update
sudo apt-get upgrade

Allow to login with password:

sudo nano /etc/ssh/sshd_config

Set password auth to yes


PasswordAuthentication yes

Restart service

sudo systemctl restart ssh

Create a wsgi user

sudo adduser wsgi
sudo usermod -aG sudo wsgi
sudo mkdir /home/wsgi/.ssh
sudo ssh-keygen -t rsa -f /home/wsgi/.ssh/id_rsa
sudo -i
sudo cat /home/wsgi/.ssh/id_rsa.pub >> /home/wsgi/.ssh/authorized_keys
sudo chmod 600 /home/wsgi/.ssh/authorized_keys
sudo chown wsgi:wsgi /home/wsgi/.ssh/authorized_keys