sudo -i
apt update -y
apt upgrade -y
//----------
apt-get install certbot
certbot certonly --standalone -d domain --register-unsafely-without-email --non-interactive --agree-tos
//----------
ufw status
netstat -tulnp | grep ssh
grep -i port /etc/ssh/sshd_config
sudo vi /etc/ssh/sshd_config
// press [Esc] and type Shift + Z to save and exit the file.
//----------
sudo systemctl restart sshd
sudo service sshd restart
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
sudo sed -i 's/#Port 22/Port 2345/g' /etc/ssh/sshd_config sudo service sshd restart https://github.com/iranxray/hope