---
title: SSH Key Configurations for Azure Devices
slug: kronpam-legacy-ui-reference-guide-3-5-0/ssh-key-configurations-for-azure-devices
description: Learn how to use SSH keys for Azure devices with this comprehensive guide. Establish a seamless connection by following step-by-step instructions to retrieve the SSH key name, enable SSH key connection in device groups, and upload the OpenSSH key format t
docTags: 
createdAt: 2022-08-01T20:09:45.000Z
---

If the devices imported from Azure have the required configuration to log in via SSH key, Kron PAM can provide a seamless connection using the SSH key. Otherwise, the global username and password need to be defined for each device group.

To use an SSH key for Azure devices:

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

1. Navigate to **Device Management** > **Device Inventory**.
2. Right-click an **Azure Device**, and select **Show Properties&#x20;**(The device SSH Key name is stored in the **sshKeyName** property)
3. Write down the value of this property to be used for th&#x65;**&#x20;SAPM&#x20;**&#x6D;odule.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/Vcqc3GO--iajLN09jBggV_image.png" size="82" width="537" height="356" caption="SSH Key Name" position="center" showCaption="true"}

Enable SSH Key Connection in Device Groups:

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

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

1. Navigate t&#x6F;**&#x20;SAPM** > **SAPM Accounts.**
2. Fill in the required fields (Th&#x65;**&#x20;Name&#x20;**&#x66;ield must be exactly equal to the value of **sshKeyName** in the Device Property)
3. Select **SSH Key** as the Type.
4. Copy the contents of the SSH key into the **Secret Data** field.

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

:::hint{type="info"}
The SSH keys must be in OpenSSH key format, meaning 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.
:::

