---
title: SSH Key Configurations for GCP Devices
slug: kronpam-legacy-ui-reference-guide-3-5-0/ssh-key-configurations-for-gcp-devices
description: Learn how to connect to GCP devices using SSH keys. Find out how to obtain the SSH key name stored in the device properties and enable SSH key connection to device groups. Follow the steps to upload the SSH key to Kron PAM in the required OpenSSH key form
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, Kron PAM can provide a 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 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 **SAPM** 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 Kron PAM and enable connection to the device:

1. Navigate to **SAPM&#x20;**> **SAPM Accounts.**
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 SAP")

:::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.
:::

