Scegli un'opzione di connessione per le VM solo interne
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Linux
Questo documento fornisce una panoramica dei metodi che puoi utilizzare per connetterti a un'istanza di macchina virtuale (VM) Compute Engine tramite il relativo indirizzo IP interno. La connessione a una VM utilizzando il relativo indirizzo IP interno è utile se isoli le VM dalle reti esterne rimuovendo i loro indirizzi IP esterni o limitando il traffico in entrata ai loro indirizzi IP esterni.
Non vuoi che nessun indirizzo IP esterno abbia accesso alle VM nel tuo progetto. Puoi utilizzare IAP su tutte le VM Linux, incluse le VM bastion host e le VM all'interno di progetti che utilizzano Cloud VPN o Cloud Interconnect.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-08-04 UTC."],[[["\u003cp\u003eThis document outlines how to connect to Compute Engine virtual machines (VMs) using their internal IP addresses, particularly useful when VMs are isolated from external networks.\u003c/p\u003e\n"],["\u003cp\u003eConnecting via internal IP is an alternative to using an external IP address, for which separate instructions are available.\u003c/p\u003e\n"],["\u003cp\u003eSSH tunneling with Identity-Aware Proxy (IAP) is recommended when external IP access to VMs is restricted and is compatible with bastion hosts and VMs within projects using Cloud VPN or Cloud Interconnect.\u003c/p\u003e\n"],["\u003cp\u003eBastion host VMs are an option for specific cases, such as session recording, where IAP is not suitable.\u003c/p\u003e\n"],["\u003cp\u003eCloud VPN or Cloud Interconnect can be used for SSH access if they are already set up within the organization, noting these are separate products from Compute Engine.\u003c/p\u003e\n"]]],[],null,["# Choose a connection option for internal-only VMs\n\nLinux\n\n*** ** * ** ***\n\nThis document provides an overview of the methods that you can use to connect to\na Compute Engine virtual machine (VM) instance through its internal IP\naddress. Connecting to a VM using its internal IP address is useful if you\nisolate VMs from external networks by removing their external IP addresses or\nrestricting inbound traffic to their external IP addresses.\n\nIf your VMs have external IP addresses, you can\n[connect using external IP address](/compute/docs/instances/connecting-to-instance).\n\nOptions\n-------\n\nThe following table summarizes the SSH options for connecting to VMs through\ntheir internal IP addresses."]]