Getting started with Yandex BareMetal
Note
Yandex BareMetal will be launched at the Preview stage in Q4 2024.
Lease your first physical server and connect to it. All the leased server's resources are exclusively yours, thus providing better performance than an equivalent virtual machine.
Getting started
Sign up for Yandex Cloud and create a billing account:
- Go to the management console
and log in to Yandex Cloud or create an account if you do not have one yet. - On the Yandex Cloud Billing
page, make sure you have a billing account linked and it has theACTIVE
orTRIAL_ACTIVE
status. If you do not have a billing account, create one.
If you have an active billing account, you can go to the cloud page
Learn more about clouds and folders.
Lease a server
-
In the management console
, select the folder you want to lease a server in. -
In the list of services, select BareMetal.
-
Click Order server.
-
Select the
ru-central1-m
availability zone. -
Select the
ru-central1-m3
pool. -
Under Configuration:
-
Select the
BA-i103-S-10G
server configuration. -
Optionally, configure disk partitioning:
- Click Configure disk layout.
- Specify the layout parameters and click Save.
-
-
Under Image, select the
Ubuntu 22.04 LTS
image. -
Under Lease conditions, specify:
- Number of servers:
1
- Lease duration:
1 month
- Number of servers:
-
Under Network settings:
- In the Private subnet field, click Create.
- Enter
bm-subnetwork
for the subnet name and click Create subnet. - In the Public address field, select
Automatically
.
-
Under Access:
-
Next to the Password field, click Generate to generate a password for the root user.
Warning
Save the password in a safe place. Yandex Cloud does not store this password, and you will not be able to view it once you lease the server.
-
In the Public SSH key field, paste the contents of the public key file. You need to create an SSH key pair yourself.
-
-
Under Server information, enter the server Name:
bm-server
. -
Click Order server.
Connect to the server
- In the management console
, select the folder the server belongs to. - In the list of services, select BareMetal.
- In the row with the server you need, click
and select KVM console.
To establish a server connection, specify its public IP address which can be found in the management console, in the Public address field under Network settings on the server page.
In the terminal, run this command:
ssh root@<server_public_IP_address>
If this is your first time connecting to the server, you will get an unknown host warning:
The authenticity of host '51.250.83.243 (51.250.83.243)' can't be established.
ED25519 key fingerprint is SHA256:6Mjv93NJDCaf/vu3NYwiLQK4tKI+4cfLtkd********.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Type yes
in the terminal and press Enter.
To establish a server connection, specify its public IP address which can be found in the management console, in the Public address field under Network settings on the server page.
Make sure that the Windows account has read privileges on the folder containing the keys.
To connect to the server, run the following command in the command line:
ssh root@<server_public_IP_address>
If this is your first time connecting to the server, you will get an unknown host warning:
The authenticity of host '89.169.132.223 (89.169.132.223)' can't be established.
ECDSA key fingerprint is SHA256:DfjfFB+in0q0MGi0HnqLNMdHssLfm1yRanB********.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Type yes
in the command line and press Enter.
To establish a server connection, specify its public IP address which can be found in the management console, in the Public address field under Network settings on the server page.
Establish a connection using the PuTTY app:
- Run the Pageant application.
- Right-click the pageant icon in the task bar.
- In the context menu, select Add key.
- Select a PuTTY-generated private key in
.ppk
format. If a password is set for the key, enter it.
- Run PuTTY.
-
In the Host Name (or IP address) field, enter the public IP address of the server you want to connect to. Set the port to
22
and connection type to SSH. -
In the tree on the left, select Connection → SSH → Auth.
-
Set the Allow agent forwarding option.
-
In the tree on the left, select Connection → SSH → Auth → Credentials.
-
In the Private key file for authentication field, select the file with the private key.
-
Go back to the Sessions menu. In the Saved sessions field, enter any session name and click Save. The session settings are saved under the specified name. You can use this session profile to connect using Pageant.
-
Click Open. If this is your first time connecting to the server, you may get this unknown host warning:
Click Accept. A terminal window will open prompting you to enter the username of the user on whose behalf the connection is being established. Enter the
root
username.If all the settings are correct, the connection with the server will be established.
-
If you saved the session profile in PuTTY, you can use Pageant to establish a connection in the future:
- Right-click the pageant icon in the task bar.
- Select the Saved sessions menu item.
- In the saved sessions list, select the session you need.