---
title: SSH Key Configurations for GCP Devices
slug: singleconnect-reference-guide-3-1-0/ssh-key-configurations-for-gcp-devices
description: Learn how to use SSH keys for GCP devices in Single Connect with this comprehensive guide. Discover the steps to retrieve SSH key names from device properties, enable SSH key connections to device groups, and effortlessly upload SSH keys to Single Connect
docTags: 
createdAt: 2022-08-01T20:49:10.000Z
---

If the devices imported from GCP have the required configuration to log in with an SSH key, Single Connect can provide seamless connection to the device. Otherwise, the global username and password need to be defined for each device group.
To use an SSH key for GCP devices:

Get the SSH key name is stored in the device properties of each device:

1. Navigate to **Device Management&#x20;**>**&#x20;Device Inventory**.
2. Right-click a&#x6E;**&#x20;Azure Device**, and select **Show Properties** (The device’s SSH Key name is stored in the **sshKeyName** property)
3. Write down the value of this property to be used for the **Secret Data Vault** module.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/Clp9ETDdESIf8g0oBVW3F_image.png "SSH Key Name")

Enable SSH Key Connection to Device Groups:

1. Navigate t&#x6F;**&#x20;Device Management&#x20;**> **Device Groups**.
2. Right-click the Device Group the GCP devices are imported to, and select **Show Properties**.
3. Select the **addDeviceSshKeyToUserSelection&#x20;**&#x70;roperty and set the value as **true**.

Upload SSH key to Single Connect and enable connection to the device:

1. Navigate to **Secret Data Vault** > **Secret Data Vault**.
2. Fill in the required fields (The **Name** field must be exactly equal to the value of **sshKeyName** in the Device Property.)
3. Select **SSH Key** in the Type field.
4. Copy the contents of the SSH key into the Secret Data field.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/hF4F-YBOredQ7pDGGDW_S_image.png "SSH Key in the Secret Data Vault")

:::hint{type="info"}
The SSH keys must be in the OpenSSH key format. This means that the value put into the Secret Data field should:
start with the “---- BEGIN SSH2 PUBLIC KEY ----” and
end with the “---- END SSH2 PUBLIC KEY ----” indicators.
:::

