---
title: SSH Key Configurations for Azure Devices
slug: kronpam-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 **Devices > Inventory.**
2. Select the Azure Device, and click the Options button (The device SSH Key name is stored in the **sshKeyName** property.)
3. Write down the value of this property to be used for the **Secrets** module.

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

Enable SSH Key Connection in Device Groups:

1. Navigate to **Devices > Inventory**.
2. Select the Device Group to which Azure devices are imported and click the **Options** button.
3. Add the a**ddDeviceSshKeyToUserSelection** property and set the value as true

Upload the SSH key to  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 in the Device Property)
3. Select **Static SSH Key** as the Configuration.
4. Copy the contents of the SSH key into the **SSH Key** field.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/OXGh6PX8Dbpp_0xQP2dji_image.png" size="56" width="327" height="496" position="center" caption="SSH Key in the SAPM" showCaption="true"}

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/-sqvLgozth3kq7nVoka7r_image.png" size="58" width="491" height="498" position="center" showCaption="false"}

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

