本頁面中的部分或全部資訊可能不適用於 Trusted Cloud by S3NS。
選擇僅限內部 VM 的連線選項
本文將概述如何透過內部 IP 位址連線至 Compute Engine 虛擬機器 (VM) 執行個體。如果移除 VM 的外部 IP 位址,或限制傳入外部 IP 位址的流量,就能將 VM 與外部網路隔離,這時使用內部 IP 位址連線至 VM 就很有用。
如果 VM 具有外部 IP 位址,您可以使用外部 IP 位址連線。
選項
下表摘要說明透過內部 IP 位址連線至 VM 的 SSH 選項。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-08 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-08 (世界標準時間)。"],[[["This 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."],["Connecting via internal IP is an alternative to using an external IP address, for which separate instructions are available."],["SSH 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."],["Bastion host VMs are an option for specific cases, such as session recording, where IAP is not suitable."],["Cloud 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."]]],[]]