Useful links and commands for config new VPS for run x-ray tunnel

ufw status

HTTP ports supported by Cloudflare 80 8080 8880 2052 2082 2086 2095
HTTPS ports supported by Cloudflare 443 2053 2083 2087 2096 8443

netstat -tulnp | grep ssh
grep -i port /etc/ssh/sshd_config
sudo vi /etc/ssh/sshd_config
press [Esc] and type Shift + Z Z to save and exit the file.
sudo systemctl restart sshd
sudo service sshd restart

sudo -i
apt update -y
apt upgrade -y

sudo nano /etc/ssh/sshd_config

sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config

sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config

bash <(curl -Ls bash <(curl -Ls sudo sed -i 's/#Port 22/Port 2345/g' /etc/ssh/sshd_config sudo service sshd restart /etc/letsencrypt/live/domain/fullchain.pem /etc/letsencrypt/live/domain/privkey.pem Let's Encrypt ->
apt-get install certbot
certbot certonly --standalone -d domain --register-unsafely-without-email --non-interactive --agree-tos