sudo apt install
sudo apt upgrade ## Fail2ban 1. installation
apt install fail2ban 2. check service
systemctl status fail2ban.service
sudo apt update ## installation
wget https://cloudron.io/cloudron-setup
chmod +x ./cloudron-setup
./cloudron-setup
To disable password authentication, check for the following line in /etc/ssh/sshd_config:
PasswordAuthentication no PermitRootLogin yes # If set to ‘yes’, store the ssh keys in root user (/root/.ssh/authorized_keys) # If set to ‘no’, store the ssh keys in sudo user (/home/ubuntu/.ssh/authorized_keys)
By default, the SSH server runs on port 22. We recommend moving this to port 202 to prevent brute force attacks. Be careful to not lock yourself out when following the instructions below.
To change the SSH port, change the following line in /etc/ssh/sshd_config:
Port 202 # Do not use any other port. Only this port is not blocked by the Cloudron firewall