With Public Cloud Services customers are able to access an instance via the VNC (Virtual Network Computing) console. This allows them to bypass networking or firewall misconfigurations, which may lock them out of an instance through other protocols (e.g., RDP or SSH). In this article, we will discuss the preparation necessary to use the VNC console, as well as how to access it.
Setting a Password for the Root User in Linux
Note: Windows users will not need to use this step. Their credentials will be created in the VNC console upon installation of their instance. If you are a Windows user attempting to learn how to access the VNC console to set up your credentials, please proceed to the next section.
Before accessing the VNC console from a Linux-based OS, we will first become root and set a password for the root user. These credentials will be necessary for logging in to the OS from the VNC console.
To begin, SSH into your instance using the SSH key that was configured when the instance was created. In our example, we are using Ubuntu 16.04. Adjust the default naming conventions accordingly for your own OS and unique IP address.
$ ssh ubuntu@INSTANCE_IP_ADDRESS
Once you are logged into your instance, become the root user using the following command:
$ sudo su
Now, set a password using the
# passwd root
You will be prompted to enter and retype your password to confirm the change. When you are finished, the output will look as follows:
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
Accessing the VNC Console from the OVH US Manager
To begin, log in to the OVH US Manager, click Cloud in the top-left corner of the page, and then select the public cloud project.
Next, click the drop-down menu on the instance which you wish to log in to via VNC and select the VNC console option.
This will bring up the following screen.
Click the Open in a new window link to open VNC console in a new tab in your browser. If your server does not start immediately, you can click the Send CtrlAltDel button in the top-right corner of the screen. When prompted, enter the username
root and the password, which we created in the previous section:
From here, you will be able to use your server as you please.
If you are a Public Cloud Services customer, it is well worth your time to learn about VNC as it gives you an additional way to access an instance in a pseudo-KVM environment.