Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Getting started with Yandex Cloud
    • Getting started
    • Step 1. Creating a billing account
    • Step 2. Account top-up and spending control
    • Step 3. Selecting your support plan
    • Step 4. Creating a VM and connecting to it
    • What's next?
  • Initial grant

In this article:

  • Create a VM
  • Configure a security group to connect to the VM
  • Connecting to a VM
  1. For individuals
  2. Step 4. Creating a VM and connecting to it

Creating a VM and connecting to it

Written by
Yandex Cloud
Updated at October 21, 2025
  • Create a VM
  • Configure a security group to connect to the VM
  • Connecting to a VM

Once your billing account is set up, you can start using Yandex Cloud services, e.g., create a VM in Yandex Compute Cloud.

Create a VMCreate a VM

  1. Go to the management console and click your profile image in the left-hand panel.

  2. Select Example organization.

  3. In the left-hand panel, select test-folder.

  4. In the list of services, select Compute Cloud.

  5. Select Virtual machines .

  6. Click Create virtual machine and set the VM parameters:

    1. Select Basic setup.
    2. Under Operating systems and products, select Ubuntu 24.04 LTS.
    3. Under Computing resources, specify the computing resource configuration for the VM.
    4. Under Disks, specify the size and type of the disk.
    5. Enter the VM name.
    6. Set the Login of the VM administrator.
    7. In the SSH key field, click Add key. In the window that opens:
      1. Enter a Name for the SSH key.

      2. Under SSH key, select Generate key.

      3. Click Add.

        The SSH key will be downloaded to your computer and added to your organization user profile.

        If, due to organization restrictions, you cannot add SSH keys to your user profile, the system will save the key to the VM user profile.

  7. Click Create VM.

Configure a security group to connect to the VMConfigure a security group to connect to the VM

A security group (SG) is a resource created at the cloud network level. Once created, a security group can be used in Yandex Cloud services to control network access to an object it applies to.

The VM you created was assigned the default security group. To allow a connection to the VM over SSH, create a rule in this security group that allows incoming traffic via TCP to port 22:

  1. Navigate to the management console.
  2. In the list of services, select Compute Cloud and open the VM you created earlier.
  3. On the VM information page, under Network, open the security group assigned to the VM.
  4. In the top-right corner, click Edit.
  5. Open the Ingress tab and click Add.
  6. In the window that opens, set the following parameters:
    1. Port range: 22.
    2. Protocol: TCP.
    3. Source: CIDR.
    4. CIDR blocks: 0.0.0.0/0.
    5. Click Save. Add other rules, if required.
  7. Click Save.

Connecting to a VMConnecting to a VM

You can connect to a VM with the RUNNING status over SSH. It may take some time for all services to initialize after the VM starts. If you get a connection error, try again in a few minutes.

To connect, specify the VM public IP address. You can find out the public IP address in the management console: on the VM page, go to the Public IPv4 address section and find the Network field. If you created your VM with an internal IP address only, assign it a public IP address.

You can also use internal IP addresses and FQDNs to establish an SSH connection between VMs within a single cloud network in Yandex Cloud.

Linux/macOS
Windows 10/11
Windows 7/8

In the terminal, run this command:

ssh <username>@<VM_public_IP_address>

Where <username> is the VM account username. If you created your VM via the CLI, yc-user is the default user.

If you have multiple private keys, specify the one you need:

ssh -i <key_path/key_file_name> <username>@<VM_public_IP_address>

If this is your first time connecting to the VM, you will get this 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 into the terminal and press Enter.

Make sure the Windows account has read access to the key folder.

To connect to the VM, run the following command in the command line:

ssh <username>@<VM_public_IP_address>

Where <username> is the VM account username. If you created your VM via the CLI, yc-user is the default user.

If you have multiple private keys, specify the one you need:

ssh -i <key_path\key_file_name> <username>@<VM_public_IP_address>

If this is your first time connecting to the VM, you will get this 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.

Establish a connection using PuTTY:

  1. Run Pageant.
    1. Right-click the Pageant icon in the task bar.
    2. In the context menu, select Add key.
    3. Select a PuTTY-generated private key in .ppk format. Enter the password for this key, if any.
  2. Run PuTTY.
    1. In the Host Name (or IP address) field, enter the public IP address of the VM you want to connect to. Specify port 22 and SSH connection type.

      ssh_add_ip

    2. In the tree on the left, select Connection → SSH → Auth.

    3. Enable Allow agent forwarding.

      ssh_choose_private_key

    4. In the tree on the left, select Connection → SSH → Auth → Credentials.

    5. In the Private key file for authentication field, select the private key file.

      ssh_choose_private_key

    6. Go back to the Sessions menu. In the Saved sessions field, enter any name for the session and click Save. This will save the session settings under the specified name. You can use this session profile to connect with Pageant.

      ssh_save_session

    7. Click Open. If this is your first time connecting to the VM, you may get this unknown host warning:

      ssh_unknown_host_warning

      Click Accept. This will open a terminal window prompting you to enter the username to use for connection. Type the username you specified when creating the VM and press Enter. If you created your VM via the CLI, yc-user is the default user.

      If everything is configured correctly, a connection to the server will be established.

      ssh_login

If you saved the session profile in PuTTY, you can use Pageant for future connections:

  1. Right-click the Pageant icon in the task bar.
  2. Select Saved sessions.
  3. In the saved sessions list, select the session you need.

For more information on how to solve connection issues, see FAQ.

Was the article helpful?

Previous
Step 3. Selecting your support plan
Next
What's next?
© 2025 Direct Cursus Technology L.L.C.