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 Studio
    • 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
    • Education and Science
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Getting started
      • Connecting to a serial console over SSH
      • Connecting to a serial console using the CLI
      • Starting the command shell in the Windows SAC
      • Disabling access to a serial console
    • Viewing service resource operations
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • 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 July 31, 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 this 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 Serial console access.
  6. Click Save changes.

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

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

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command 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 the 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
© 2025 Direct Cursus Technology L.L.C.