---
title: SSH Key Configurations for GCP Devices
slug: kronpam-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 **Devices > Inventory.**
2. Select th&#x65;**&#x20;GCP Device**, and click the **Options** button. (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.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/4VvH1UkqYIvuTtJBrswSr_image.png" size="74" width="787" height="410" position="center" caption="SSH Key Name" showCaption="true"}

Enable SSH Key Connection to Device Groups:

1. Navigate to **Devices > Inventory.**
2. Select the Device Group the GCP devices are imported to and click the **Options&#x20;**&#x62;utton.
3. Add the **addDeviceSshKeyToUserSelection** property and set the value as true.

Upload SSH key to Kron PAM and enable connection to the device:

1. Navigate to **Secrets > Vault.**
2. Fill in the required fields (The Account Name field must be exactly equal to the value of sshKeyName in the Device Property)
3. Selec&#x74;**&#x20;Static SSH Key** in the Configuration field.
4. Copy the contents of the **SSH key&#x20;**&#x69;nto the SSH Key field.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/VX5irygOeMTtJKR_MA1pY_image.png" size="56" width="295" height="475" position="center" caption="SSH Key in the  Configuration field" showCaption="true"}

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/9k9VCz03Y5awcclLJICBw_image.png" size="62" width="467" height="476" position="center" caption="SSH Key in the  Configuration field" showCaption="true"}

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

