How to Access BMC Windows Server

Introduction

The Bare Metal Cloud (BMC) portal allows you to provision a BMC server quickly. The deploy section lets you spin up a Windows Server 2019 and 2022 Standard or Datacenter edition. You can connect to your server using RDP or the portal's Remote Console functionality.

In this guide, we will focus on the steps you need to take to SSH into your BMC Windows Server. Additionally, the article will show how to change a password for the Admin user in Windows if you decide to use RDP.

How to access a BMC Windows server user guide

How to SSH into BMC Windows Server

Logging into a Windows BMC server over SSH is the same as logging into other Windows servers. Use any OS with an SSH client of your choice to establish a remote connection.

Both key pair and password-based login are available. Follow the instructions below to access your server using SSH. The steps cover the optional RDP access.

Use SSH Key Pair to Log into Windows Server

To SSH into your BMC server using a key pair on an Ubuntu or Windows machine, ensure you have the public key ready when provisioning a server.

To deploy a Windows BMC instance and add a public SSH key:

1. Click the Deploy New Server button in the BMC portal.

2. Select the desired location, billing, server configuration, choose a Windows Server OS, and click Next. The prices are used for illustrative purposes.

BMC Windows Server OS selection step in the portal.

3. Fill in the hostname and add an optional description. Changing the Root Partition setting is also optional.

4. Configure RDP access. If you decide to use RDP, you must enter the whitelisted IP addresses or allow access from all IPs.

BMC portal Remote Desktop Options

To whitelist IP addresses, follow the listed examples of allowed formats.

Add whitlisted IPs for BMC RDP access.

If you plan on using SSH only, you can disable remote desktop access. If you disable this option, you will not see the pop-up box with a password for the admin user at the end of the deployment process, and you must enter a public SSH key. Refer to the How to Change Windows Admin Password section below for steps on how to define a password for the admin user.

5. Click the blank field to select a stored SSH key or select + Add a new Public SSH Key to enter a new key. Click Next to continue.

BMC portal Public SSH Key field

6. Assign or buy a public IP allocation to access the server via public networks. If you want a private-only server, choose Do not assign a public IP allocation. In that case, your server will be accessible from other machines on the same private network or via BMC Remote Console.

Note: If you create a private-only server, you need to deploy a server with public access to reach the private one.

7. Optionally, add the server to an existing public or private network and specify the default gateway.

8. Click the Deploy New Server button when you are ready. If you left the RDP option enabled, a dialogue box with the admin password appears. Save the credentials and close the dialog box.

BMC Windows credentials box

Follow the status on the Servers page to verify when the process completes.

Note: If you do not add a public SSH key during the BMC server provisioning, the OpenSSH server will not be set up.

Once your BMC instance is ready, you can establish a remote connection.

From the local machine:

1. Open the SSH client of your choice.

2. Use the admin username for your connection and the server’s IP:

ssh [email protected]

3. The SSH client loads the Command Prompt by default.

Type powershell to load PowerShell instead of the Command Prompt.

Use Admin credentials to SSH into Windows Server

If you enabled the RDP option during the server deployment process, use the admin username and the password generated in the portal during the server deployment process.

We strongly recommend changing the initial password. To do so, use the RDP, BMC Remote Console, or SSH to access your server. Refer to the next section for instructions on changing Windows passwords using SSH.

To SSH into a BMC Windows server using your credentials:

1. Open an SSH client on your local machine.

2. Enter ssh admin@server_ip and the password you saved or changed earlier.

3. The SSH client loads the Command Prompt by default. Type powershell if you want to load PowerShell instead of the Command Prompt.

You can now manage your Windows server over SSH using your credentials.

How to Change Windows Admin Password

If you disable the RDP option during server deployment, use SSH and CMD or PowerShell to change the Windows admin password.

Note: If you do not add a public SSH key during the BMC server provisioning, the OpenSSH server will not be set up.

To change the Windows admin password on a BMC server:

1. Use the SSH key pair to log into your Windows server.

2. Type the following command to change the admin password:

net user admin yourpassword

For example:

Changing Windows password in PowerShell

The password is visible when typing this command. If you want to hide the password, use the asterisk instead.

net user admin *

In this case, you need to confirm your password.

PowerShell Windows confirmation for a password change

Remember to use a long and strong password. If you lose a password, repeat the procedure to create a new one, as phoenixNAP does not store them.

Conclusion

The instructions in this guide provided the necessary steps to learn how to SSH into a Bare Metal Cloud Windows server. If you use RDP for remote access, whitelist all IP addresses and change the admin password.

To learn how to use the Remote Console feature in the BMC portal, refer to our guide or learn how to set up BMC Remote Access via VPN.

Was this article helpful?
YesNo
Goran Jevtic
Goran combines his leadership skills and passion for research, writing, and technology as a Technical Writing Team Lead at phoenixNAP. Working with multiple departments and on various projects, he has developed an extraordinary understanding of cloud and virtualization technology trends and best practices.
Next you should read
phoenixNAP Bare Metal Cloud Billing Models
October 30, 2020

This article talks about the available billing models for Bare Metal Cloud servers. Here, you will also learn...
Read more
How to Connect to a Server Using the BMC Remote Console Feature
August 28, 2020

This guide shows you how to use the Remote Console functionality in the Bare Metal Cloud Portal. Before you...
Read more
How to Install phoenixNAP BMC Ansible Module
July 24, 2020

Learn how to successfully install the Bare Metal Cloud Ansible module on your control machine. Take a look at...
Read more
What is Bare Metal Cloud
May 20, 2020

This article provides answers to everything you wanted to know about Bare Metal Cloud and how it compares to...
Read more