Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

Configuration of a cloned Debian/Ubuntu server

Once the cloning of your Cloud server is done, you can use the newly deployed machine to test your website, or have a pre-production environment. To start operating with your clone, you will need to provision your server with a series of prior modifications.

Preparing the environment

Access the dashboard of the cloned machine, and click on the icon corresponding to the SSH console. enter image description here

Login to the cloned machine with the root user and the password of the original machine (note the special characters in the ASCII code). enter image description here

Once you have logged into the cloned server you must modify the /etc/network/interfaces file, for example with the nano editor and modify the existing public IP in the file to the new public IP of the cloned machine which you will have received by mail. enter image description here

nano interfaces

**Interfaces file with the initial configuration. enter image description here

**Mail with the access credentials.

enter image description here **Updated interfaces file. enter image description here Next, run the command /etc/init.d/networking restart. enter image description here You can check the modification of the newly configured IP by running the command ifconfig -a. enter image description here At this point, your cloned machine will have its own IP, and will be able to make use of any SSH connection, instead of the console provided by the SW Panel.

Modifying the hosts and hostname files

Connect via SSH to the new server and modify the /etc/hosts and /etc/hostname files by changing the name of the original server with the name of the server you received by e-mail. enter image description here

nano /etc/hosts

**Hosts file with the initial configuration. enter image description here

**Hosts file with the final configuration. enter image description here

nano /etc/hostname

**hostsname file with the initial configuration.

enter image description here

**hostname file with the final configuration.

enter image description here

Modify root user password

Run the passwd root command so that you can change the root user password to the one you received by e-mail. enter image description here

In this way, the new cloned machine will have the same IP with its corresponding root name and password finishing the cloning process and starting up the cloned server.

IMPORTANT: to save the changes with the nano editor remember to press the 'control + x' keys on your keyboard.

More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.
More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.