Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Compute Cloud
    • All guides
      • Getting started
      • Connecting to a serial console via SSH
      • Connecting to a serial console using the CLI
      • Starting the command shell in the Windows SAC
      • Disabling access to a serial console
    • Viewing operations with resources
  • Yandex Container Solution
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing a serial console
  3. Disabling access to a serial console

Disabling access to a serial console

Written by
Yandex Cloud
Updated at May 5, 2025

Enabled serial console access poses a security risk as attackers could gain access to your VM.

To disable access to a serial console:

Management console
CLI
  1. In the management console, select the folder the VM belongs to.
  2. Select Compute Cloud.
  3. In the left-hand panel, select Virtual machines and click the name of the VM.
  4. Click Edit VM.
  5. Under Additional, disable Access to serial console.
  6. Click Save changes.

In the VM metadata, set serial-port-enable to 0.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. Get a list of VMs in the default folder:

    yc compute instance list
    

    Result:

    +----------------------+-----------------+---------------+---------+----------------------+
    |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+---------------+---------+----------------------+
    | fhm0b28lgfp4******** | first-instance  | ru-central1-a | RUNNING | my first vm via CLI  |
    | fhm9gk85nj7g******** | second-instance | ru-central1-a | RUNNING | my second vm via CLI |
    +----------------------+-----------------+---------------+---------+----------------------+
    
  2. Select ID or NAME of the VM, e.g., first-instance.

  3. In the VM metadata, specify serial-port-enable=0:

    yc compute instance add-metadata \
        --name first-instance \
        --metadata serial-port-enable=0
    

    This command will disable the serial console access on the first-instance VM.

Was the article helpful?

Previous
Starting the command shell in the Windows SAC
Next
Creating a fixed-size instance group
Yandex project
© 2025 Yandex.Cloud LLC