[Yandex Cloud documentation](../../../index.md) > [Yandex Compute Cloud](../../index.md) > [Step-by-step guides](../index.md) > Using a VM > Connecting to a VM over SSH using Cloud Shell

# Connecting to a Linux VM over SSH using Yandex Cloud Shell


You can connect to a `Running` VM over SSH using Cloud Shell in the management console.

{% list tabs group=operating_system %}

- Management console {#console}

  1. On the left-hand panel in the [management console](https://console.yandex.cloud), click ![image](../../../_assets/console-icons/dots-9.svg) **All services** and select **Compute Cloud**, or find it using the search bar on the dashboard.
  1. Navigate to the VM you want to connect to.
  1. Make sure its status is `Running`. If the VM is idle, click ![image](../../../_assets/console-icons/play.svg) **Start** in the top-right corner and wait until its status changes to `Running`.
  1. Click ![image](../../../_assets/console-icons/terminal.svg) **Connect in Cloud Shell** at the top right.
  1. Enter a username. The default login is the one specified when creating the VM.
  1. Paste the contents of the public SSH key file or upload the file.
  1. Click **Connect**.
  
  This will open the ![image](../../../_assets/console-icons/terminal.svg) **Cloud Shell** terminal at the bottom with an established connection to the VM over SSH.
  
  To close the connection, click ![image](../../../_assets/console-icons/xmark.svg) or use the `exit` command.

{% endlist %}

For more information about working with SSH keys, see [Connecting to a Linux VM over SSH](ssh.md).


#### What's next {#what-is-next}

* [Using Yandex Cloud from within a VM](auth-inside-vm.md)


#### See also {#see-also}

* [Connecting to a Windows VM via RDP](rdp.md)
* [Connecting to a Windows VM via PowerShell](powershell.md)
* [Connecting to a VM via OS Login](os-login.md)