You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/ssh-keys-portal.md
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,28 @@
1
1
---
2
2
title: Create SSH keys in the Azure portal
3
3
description: Learn how to generate and store SSH keys in the Azure portal for connecting the Linux VMs.
4
-
author: cynthn
4
+
author: mattmcinnes
5
5
ms.service: virtual-machines
6
6
ms.workload: infrastructure-services
7
7
ms.topic: article
8
-
ms.date: 08/25/2020
9
-
ms.author: cynthn
8
+
ms.date: 02/21/2023
9
+
ms.author: mattmcinnes
10
10
11
11
---
12
12
13
13
# Generate and store SSH keys in the Azure portal
14
14
15
15
**Applies to:**:heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets
16
16
17
-
If you frequently use the portal to deploy Linux VMs, you can make using SSH keys simpler by creating them directly in the portal, or uploading them from your computer.
17
+
If you frequently use the portal to deploy Linux VMs, you can simplify using SSH keys by integrating them into Azure. There are several ways to create SSH keys for use with Azure.
18
18
19
-
You can create a SSH keys when you first create a VM, and reuse them for other VMs. Or, you can create SSH keys separately, so that you have a set of keys stored in Azure to fit your organizations needs.
19
+
-You can create SSH keys when you first create a VM. Your keys aren't tied to a specific VM and you can use them in future applications.
20
20
21
-
If you have existing keys and you want to simplify using them in the portal, you can upload them and store them in Azure for reuse.
21
+
- You can create SSH keys in the Azure portal separate from a VM. You can use them with both new and old VMs.
22
+
23
+
- You can create SSH keys externally and upload them for use in Azure.
24
+
25
+
You can reuse your stored keys in various of applications to fit your organization's needs.
22
26
23
27
For more detailed information about creating and using SSH keys with Linux VMs, see [Use SSH keys to connect to Linux VMs](./linux/ssh-from-windows.md).
24
28
@@ -34,21 +38,21 @@ For more detailed information about creating and using SSH keys with Linux VMs,
34
38
35
39
1. In **Resource group** select **Create new** to create a new resource group to store your keys. Type a name for your resource group and select **OK**.
36
40
37
-
1. In **Region** select a region to store your keys. You can use the keys in any region, this is just the region where they will be stored.
41
+
1. In **Region** select a region to store your keys. You can use the keys in any region, this option is just the region where you store them.
38
42
39
43
1. Type a name for your key in **Key pair name**.
40
44
41
45
1. In **SSH public key source**, select **Generate public key source**.
42
46
43
-
1. When you are done, select **Review + create**.
47
+
1. When you're done, select **Review + create**.
44
48
45
49
1. After it passes validation, select **Create**.
46
50
47
-
1. You will then get a pop-up window to, select **Download private key and create resource**. This will download the SSH key as a .pem file.
51
+
1. You'll get a pop-up window to, select **Download private key and create resource** that downloads the SSH key as a .pem file.
48
52
49
53
:::image type="content" source="./media/ssh-keys/download-key.png" alt-text="Download the private key as a .pem file":::
50
54
51
-
1. Once the .pem file is downloaded, you might want to move it somewhere on your computer where it is easy to point to from your SSH client.
55
+
1. Once you've downloaded the .pem file, you might want to move it somewhere on your computer where it's easy to point to from your SSH client.
52
56
53
57
54
58
## Connect to the VM
@@ -76,7 +80,7 @@ You can also upload a public SSH key to store in Azure. For information about ho
76
80
77
81
1. In **Resource group** select **Create new** to create a new resource group to store your keys. Type a name for your resource group and select **OK**.
78
82
79
-
1. In **Region** select a region to store your keys. You can use the keys in any region, this is just the region where they will be stored.
83
+
1. In **Region** select a region to store your keys. You can use the keys in any region, this option is just the region where they're stored.
80
84
81
85
1. Type a name for your key in **Key pair name**.
82
86
@@ -86,11 +90,11 @@ You can also upload a public SSH key to store in Azure. For information about ho
86
90
87
91
1. After validation completes, select **Create**.
88
92
89
-
Once the key has been uploaded, you can choose to use it when you create a VM.
93
+
Once you upload the key, you can choose to use it when you create a VM.
90
94
91
95
## List keys
92
96
93
-
SSH keys created in the portal are stored as resources, so you can filter your resources view to see all of them.
97
+
Azure stores your SSH keys created in the portal as resources, so you can filter your resources view to see all of them.
94
98
95
99
1. In the portal, select **All resource**.
96
100
1. In the filters, select **Type**, unselect the **Select all** option to clear the list.
@@ -100,7 +104,7 @@ SSH keys created in the portal are stored as resources, so you can filter your r
100
104
101
105
## Get the public key
102
106
103
-
If you need your public key, you can easily copy it from the portal page for the key. Just list your keys (using the process in the last section) then select a key from the list. The page for your key will open and you can click the **Copy to clipboard** icon next to the key to copy it.
107
+
If you need your public key, you can easily copy it from the portal page for the key. Just list your keys (using the process in the last section) then select a key from the list. The page for your key opens and you can click the **Copy to clipboard** icon next to the key to copy it.
0 commit comments