Skip to content

Connecting to linux instances

Johannes Passing edited this page Jul 27, 2023 · 4 revisions

📝 This Wiki page has moved.

For the latest content, see Connect to a Linux VM on the IAP Desktop documentation page.

Prerequisites

To follow the steps in this guide, make sure that you meet the following prerequisites:

To connect to a Linux VM by using SSH, do the following:

  1. In the Project Explorer tool window, right-click a VM instance and select Connect:

    Context menu

  2. IAP Desktop now automatically publishes your SSH public key, creates an IAP TCP forwarding tunnel, and opens a terminal:

    SSH Terminal

Customize connection settings

To customize the connection settings, you can use the Connection Settings tool window:

  1. In the Project Explorer tool window, right-click a VM instance and select Connection Settings.

  2. In the Connection Settings window, customize settings as needed.

    Connection settings

    If you specify a setting that deviates from the default, it is shown in bold typeface.

Instead of customizing settings for each VM instance individually, you can also specify settings that apply to an entire zone or projects:

  1. In the Project Explorer tool window, right-click a zone or project and select Connection Settings.
  2. In the Connection Settings window, customize settings as needed. The settings apply to all VM instances in the respective zone or project, unless explicitly overridden.

Note that IAP Desktop automatically detects when a VM instance uses OS Login.

What's next