Gain Root Access To VPS Print

  • 0

First steps (current VPS range)

Connecting to your VPS

At the first installation or when reinstalling from the Control Panel, a user with elevated permissions will be created and you will be sent an email containing the login credentials. The username will be chosen according to the operating system, for example “ubuntu” or “debian”.

You can now connect to your VPS via SSH with username and password. You can access your server through a command terminal (Linux or MAC) or through third-party software on Windows (we can recommend PuTTY).

Using PuTTY for example, simply open the application and enter the servername or the IPv4 address to establish a connection. You will be prompted for username and password and then you can proceed with the command line interface (CLI).

puttyconnect

Connecting from a command terminal, type the following to log in to your VPS with the information provided in the email (username and IPv4 address):

ssh username@IPv4_of_your_VPS

Since you are now logged in with elevated privileges (a sudo user), you can enter commands to perform administrative tasks. It is recommendable to first change your password:

~$ sudo passwd
New password:
Retype new password:
passwd: password updated successfully

Note that passwords are not displayed. Next, switch to the “root” user and set your admin password:

~$ sudo su -
~# passwd
New password:
Retype new password:
passwd: password updated successfully

Enabling root logins

Connecting with the “root” user is disabled by default as a security measure. If you need to permit these connections, refer to the instructions in this guide.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution