To disable the network configuration in Cloud-Init, you need to create a file /etc/cloud/cloud.cfg.d/99-custom-networking.cfg and add the contents of network: {config: disabled} To do this, you can execute the command $ sudo echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-custom-networking.cfg
Read more →VPS
In some OSes, by default it is forbidden for the root user to log in using a password. To change this, you need to edit the configuration file of the SSH daemon through the local console. Check the configuration files in the directory /etc/ssh/sshd_config.d/*.conf and replace PermitRootLogin no with PermitRootLogin yes and PasswordAuthentication no with PasswordAuthentication yes. If this directory is empt...
Read more →To begin with, before creating a swap file, it is advisable to check the list of mounted partitions and their size. To do this, execute the df -h command. In this example, a swap file will be created in the /var directory with a size of 4GB. Creating a swap file Create an empty file and set the correct permissions: [wpcm lang="bash"]sudo touch /var/.swap.img sudo chmod 600 /var/.swap.img[/wpcm] Fill t...
Read more →