Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Linux
Puedes conectarte a instancias de máquina virtual (VM) de Compute Engine desde la Google Cloud consola con la herramienta SSH en el navegador. La función SSH en el navegador no requiere extensiones ni software adicionales. SSH en el navegador admite conexionesa las VMs que almacenan claves SSH en metadatos, VMs que usan Acceso al SO y, también,VMs que usan IAP para el reenvío de TCP.
Cada vez que te conectas a una VM con la conexión SSH desde el navegador, Compute Engine crea un par de claves efímeras y establece un nombre de usuario para tu conexión.
Tu nombre de usuario y la ubicación en la que Compute Engine almacena tus claves SSH dependen de si usas claves SSH almacenadas en metadatos o el Acceso al SO.
Para obtener más información, consulta Acerca de las conexiones SSH.
Requisitos
Para usar SSH en el navegador, tu entorno debe cumplir con los siguientes requisitos:
La red debe cumplir con los siguientes requisitos.
Los proxies HTTPS y los dispositivos de seguridad no deben desencriptar y volver a encriptar el tráfico con su propio certificado TLS, por ejemplo, para realizar la inspección de TLS.
La red debe permitir el tráfico hacia y desde los nombres de host que terminen en google.com, gstatic.com o googleapis.com.
La red debe permitir que se envíen paquetes a las direcciones IP de los dominios predeterminados.
Para conectarse a las VMs a través de su dirección IP interna, la VPC debe usar IAP.
Limitaciones
No se admite dentro de los perímetros de los Controles del servicio de VPC. SSH en el navegador no es compatible con los perímetros de Controles del servicio de VPC. En su lugar, usa gcloud CLI. Para obtener más información, consulta Conéctate a VMs de Linux o Conéctate a una consola en serie, según tu caso de uso.
Tiempos de transferencia de claves SSH lentos. Los tiempos de transferencia de claves SSH en el navegador varían de 2 a 25 segundos.
Desconexiones intermitentes. En este momento, no ofrecemos un Acuerdo de Nivel de Servicio (ANS) específico para la vida útil de las conexiones. Si planeas mantener abierta la ventana de la terminal durante un período prolongado, usa multiplexores de terminal como tmux o screen.
Las combinaciones de teclas cierran la ventana. Las siguientes combinaciones de teclas cierran la ventana SSH en el navegador:
En estaciones de trabajo con Windows y Linux: Ctrl+W
En estaciones de trabajo de macOS: Cmd+W
En estaciones de trabajo de ChromeOS: Ctrl+Shift+W
La transferencia de archivos puede ser lenta para los archivos grandes. Si experimentas tiempos de transferencia de archivos lentos, usa el comando gcloud compute scp en lugar de SSH en el navegador.
Cómo usar SSH en el navegador
Conéctate a las VMs
Si deseas obtener información sobre cómo usar SSH en el navegador para conectarte a una VM, consulta Conéctate a las VMs de Linux.
Si deseas obtener información sobre cómo usar SSH en el navegador para conectarte a una Cloud TPU, consulta Conéctate a una VM de Cloud TPU.
Conéctate a las VMs que no tienen direcciones IP públicas
En la lista de VMs, haz clic en el menú desplegable arrow_drop_down junto al botón SSH de la VM a la que deseas conectarte.
Haz clic en Abrir en otra ventana del navegador con la clave privada SSH proporcionada
Se abrirá la ventana de SSH en el navegador.
Haz clic en Conectarse con un archivo de clave SSH y elige el archivo de clave privada asociado a la clave pública en tu perfil de Acceso al SO.
Desconéctate de las VMs
Para desconectarte de una VM y finalizar una sesión de SSH en el navegador, ejecuta el comando exit.
Cómo desplazarse por la terminal
Puedes desplazarte por la terminal con la rueda del mouse o el panel táctil. Como alternativa, puedes usar las combinaciones de teclas del sistema operativo de tu estación de trabajo.
Windows y Linux
Para desplazarte hacia arriba, usa Ctrl+Shift+PageUp. Para desplazarte hacia abajo, usa Ctrl+Shift+PageDn.
macOS
Para desplazarte hacia arriba, usa Fn+Shift+Up. Para desplazarte hacia abajo, usa Fn+Shift+Down.
Chrome OS
Para desplazarte hacia arriba, usa Alt+Shift+Up. Para desplazarte hacia abajo, usa Alt+Shift+Down.
Cómo copiar y pegar texto
La opción de copia predeterminada para SSH en el navegador es Copiar al seleccionar. Se copia cualquier texto que destaques en SSH en el navegador. También puedes copiar y pegar el texto con las combinaciones de teclas del sistema operativo de tu estación de trabajo.
Windows y Linux
Para copiar texto, usa Ctrl+C. Para pegar texto, usa Ctrl+V.
macOS
Para copiar texto, usa Cmd+C. Para pegar texto, usa Cmd+V.
Chrome OS
No hay una combinación de teclas para copiar archivos. Para pegar texto, usa Ctrl+Shift+V.
Si tienes problemas para copiar y pegar bloques de texto de gran tamaño, usa la transferencia de archivos en su lugar.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-03 (UTC)"],[[["\u003cp\u003eSSH-in-browser allows direct connection to Compute Engine VMs from the Google Cloud console without additional software, supporting SSH keys in metadata, OS Login, and IAP for TCP forwarding.\u003c/p\u003e\n"],["\u003cp\u003eTo use SSH-in-browser, the environment must have a supported web browser, the VM must have the guest environment installed, and the network must allow traffic to specific Google domains and IP addresses.\u003c/p\u003e\n"],["\u003cp\u003eSSH-in-browser has limitations such as not being supported within VPC Service Controls perimeters, slow SSH key transfer times, intermittent disconnects, and specific keyboard shortcuts that close the window.\u003c/p\u003e\n"],["\u003cp\u003eUsers can connect to VMs with user-uploaded SSH keys by selecting "Open in browser window using provided private SSH key" in the Google Cloud console and choosing the corresponding private key file.\u003c/p\u003e\n"],["\u003cp\u003eUsers can transfer files, copy and paste text, and scroll the terminal using designated shortcuts, and can disconnect from a VM session by using the \u003ccode\u003eexit\u003c/code\u003e command.\u003c/p\u003e\n"]]],[],null,["Linux\n\n*** ** * ** ***\n\nYou can connect to Compute Engine virtual machine (VM) instances from within\nthe Google Cloud console by using the SSH-in-browser tool. SSH-in-browser doesn't\nrequire any additional extensions or software. SSH-in-browser supports\nconnections to VMs that store\n[SSH keys in metadata](/compute/docs/instances/ssh#metadata),\nVMs that use\n[OS Login](/compute/docs/instances/ssh#os-login), and\nVMs that use\n[IAP for TCP forwarding](/iap/docs/using-tcp-forwarding#tunneling_ssh_connections).\n\nEach time you connect to a VM by using SSH-in-browser, Compute Engine\ncreates an ephemeral key pair and sets a username for your connection.\nYour\nusername and the location where Compute Engine stores your SSH keys\ndepend on whether you use SSH keys stored in metadata, or OS Login.\n\nFor more information see [About SSH connections](/compute/docs/instances/ssh).\n\nRequirements\n\nTo use SSH-in-browser, your environment must meet the following requirements:\n\n- Google Cloud console must be running in a [supported web browser](/compute/docs/console#supported_browsers).\n- The VM you're connecting to must have the [guest environment](/compute/docs/images/guest-environment) [installed and running](/compute/docs/images/install-guest-environment). The guest environment is pre-installed on VMs that you create from [Google-provided public images](/compute/docs/images#os-compute-support).\n- Your network must meet the following requirements:\n\n - HTTPS proxies and security devices must not decrypt and re-encrypt traffic using their own TLS certificate, for example, to perform TLS inspection.\n - The network must allow traffic to and from hostnames ending in `google.com`, `gstatic.com`, or `googleapis.com`.\n - The network must allow packets to be sent to the IP addresses for the default domains.\n - To connect to VMs through their external IP address, the Virtual Private Cloud (VPC) must [allow TCP ingress traffic for IP range\n `0.0.0.0/0`](/vpc/docs/using-firewalls#common-use-cases-allow-ssh).\n - To connect to VMs through their internal IP address, the VPC must use [IAP](#connect_to_vms_that_dont_have_public_ip_addresses).\n\nLimitations\n\n- **Not supported within VPC Service Controls perimeters.** SSH-in-browser isn't supported within VPC Service Controls perimeters. Use the gcloud CLI instead. For more information, see [Connect to Linux VMs](/compute/docs/connect/standard-ssh) or [Connecting to a serial console](/compute/docs/troubleshooting/troubleshooting-using-serial-console#gcloud_2), depending on your use case.\n- **Slow SSH key transfer times.** SSH-in-browser key transfer times range from 2 to 25 seconds.\n- **Intermittent disconnects.** At this time, we don't offer a specific Service Level Agreement (SLA) for connection lifetimes. If you plan to keep the terminal window open for an extended period of time, use terminal multiplexers like [tmux](https://tmux.github.io/) or [screen](http://www.gnu.org/software/screen/).\n- **Keyboard shortcuts close the window.** The following keyboard shortcuts close the SSH-in-browser window:\n - On Windows and Linux workstations: `Ctrl+W`\n - On macOS workstations: `Cmd+W`\n - On Chrome OS workstations: `Ctrl+Shift+W`\n- **File transfer might be slow for large files.** If you experience slow file transfer times, use the [`gcloud compute scp` command](/sdk/gcloud/reference/compute/scp) instead of SSH-in-browser.\n\nUse SSH-in-browser\n\nConnect to VMs\n\nTo learn how to use SSH-in-browser to connect to a VM, review\n[Connect to Linux VMs](/compute/docs/instances/connecting-to-instance#console).\n\nTo learn how to use SSH-in-browser to connect to a Cloud TPU, review\n[Connecting to a Cloud TPU VM](/tpu/docs/managing-tpus-tpu-vm#tpu-connect).\n\nConnect to VMs that don't have public IP addresses\n\nTo connect to VMs that have only internal IP addresses, follow\n[Choose a connection option for internal-only VMs](/compute/docs/connect/ssh-internal-ip).\n\nConnect to VMs with user-uploaded SSH keys\n\nSSH-in-browser supports connections with user-uploaded ECDSA SSH keys for VMs that use\n[OS Login](/compute/docs/oslogin).\n\nTo connect to a VM with a\n[user-uploaded SSH key](/compute/docs/connect/add-ssh-keys#os-login), do\nthe following:\n\n1. In the Google Cloud console, go to the **VM instances** page.\n\n [Go to VM Instances](https://console.cloud.google.com/compute/instances)\n2. In the list of VMs, click the\n arrow_drop_down drop-down next to\n the **SSH** button of the VM that you want to connect to.\n\n3. Click **Open in browser window using provided private SSH key**.\n\n The SSH-in-browser window opens.\n4. Click **Connect with SSH key file** and choose the private key file\n associated with the public key in your OS Login profile.\n\nDisconnect from VMs\n\nTo disconnect from a VM and terminate an SSH-in-browser session, run the `exit`\ncommand.\n\nScroll through the terminal\n\nYou can scroll the terminal using your mouse wheel or trackpad. Alternatively,\nyou can use the keyboard shortcuts for your workstation's operating system. \n\nWindows and Linux\n\nTo scroll up, use `Ctrl+Shift+PageUp`. To scroll down, use\n`Ctrl+Shift+PageDn`.\n\nmacOS\n\nTo scroll up, use `Fn+Shift+Up`. To scroll down, use `Fn+Shift+Down`.\n\nChrome OS\n\nTo scroll up, use `Alt+Shift+Up`. To scroll down, use `Alt+Shift+Down`.\n\nCopy and paste text\n\nThe default copy option for SSH-in-browser is **Copy on select**. Any text you\nhighlight in SSH-in-browser is copied. You can alternatively copy and paste the\ntext using the keyboard shortcuts for your workstation's operating system. \n\nWindows and Linux\n\nTo copy text, use `Ctrl+C`. To paste text, use `Ctrl+V`.\n\nmacOS\n\nTo copy text, use `Cmd+C`. To paste text, use `Cmd+V`.\n\nChrome OS\n\nThere is no keyboard shortcut to copy files. To paste text, use\n`Ctrl+Shift+V`.\n\nIf you encounter problems copying and pasting large blocks of text, use\n[file transfer](#transferbrowser) instead.\n\nTransfer files\n\nTo learn how to transfer files to and from VMs using SSH-in-browser, review\n[Transfer files using SSH-in-browser](/compute/docs/instances/transfer-files#transferbrowser).\n\nTroubleshoot\n\nTo find methods and tools for diagnosing and resolving failed SSH connections,\nsee [Troubleshooting SSH](/compute/docs/troubleshooting/troubleshooting-ssh)."]]