Introduction

The Remote Console feature of the Bare Metal Cloud (BMC) portal is an easy and secure way to connect to your BMC servers without SSH keypair. The BMC consoling only works with the password-based authentication.

Once you purchase a server and set up a user with a password, you can access the server from the BMC portal’s Server page. Follow the instructions in this guide to learn how to access your Bare Metal Cloud server using the Remote Console.

How to Connect to a server using a BMC portal Remote Console

Prerequisites

  • A server purchased through the BMC portal or API.
  • The correct public API key provided during the purchase
  • PNCP/BMC portal credentials

Create a User with a Password

Before you can connect to your server using the remote console, you must set up a user with a password on your server.

When we provision your new server, we create a user without a password. For example, when creating an Ubuntu server, the user is also called ubuntu.

Since there is no password for the default user, you can only SSH into your new server with the public key you provided during the purchase.

When purchasing a server through the BMC portal, the field where you provide the key looks like this:

Public SSH key in the BMC portal

The reason is that phoenixNAP does not want users to expose any of their passwords. That is why we are using SSH keys.

SSH into BMC Server

Use the ubuntu user created during provisioning and a public IP address to SSH into your server.

To find the server’s public IP address:

1. Log in to the BMC portal at https://bmc.phoenixnap.com/

2. Navigate to the Servers

3. Click the name of the server to load the Server Details

4. Scroll down to the Networking section, and you will see the list of your Public IPs.

Server details page showing public IP addresses.

Now, open the terminal window on your machine and type in, for example:

ssh ubuntu@10.111.14.26

Terminal SSh login to a BMC server

Add a User

When you log in, create another user, and assign a password:

sudo adduser demouser

Specify a password when prompted:

Adding a user in Ubuntu and specifying a password.

Hit enter to skip adding the details for this user.

Enter y to confirm, and then you can close the SSH connection.

Connect to a BMC Server Using the BMC Portal Remote Console

To test if you can access your server using the Remote Console and the user you just added:

1. Go back to the BMC portal Servers

2. Locate your server and click the Actions

BMC Portal server list

3. Select Connect from the menu.

Server actions menu in the BMC portal

4. Click Connect to Server on the warning popup.

Connect to server confirmation popup

The Remote Console loads in a new window.

Ubuntu user remote console


Note: You need to allow popups when using the Bare metal Cloud portal to load the console window.


When you first try to interact with the server, it will not allow you until you log in with the user you created in the previous step.

Remote console invalid user

Enter the credentials for the new user when prompted. Now you can start interacting with the server.

Remote console with a user logged in

Conclusion

PhoenixNAP’s Bare Metal Cloud portal lets you interact with your servers using the Remote Console functionality and the basic password-based authentication.

You must create a user with a password as soon as your server is provisioned to make sure you can access your server through the BMC portal. This feature is invaluable in case you cannot establish an SSH connection.

For additional BMC portal and API information, visit the phoenixNAP Developer Portal.


Next you should also read