Skip to content

Commit 05b8b17

Browse files
author
Cynthia Nottingham
committed
600 and explaining pub\priv better
1 parent c5e137c commit 05b8b17

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

articles/virtual-machines/linux/quick-create-powershell.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ New-AzResourceGroup -Name "myResourceGroup" -Location "EastUS"
3737

3838
## Create a virtual machine
3939

40-
We will be automatically generating an SSH key to use for connecting to the VM. The SSH key that is created using `-GenerateSshKey` will be stored in Azure as a resource, using the name you provide as `SshKeyName`. The SSH key resource can be reused for creating additional VMs.
40+
We will be automatically generating an SSH key pair to use for connecting to the VM. The public key that is created using `-GenerateSshKey` will be stored in Azure as a resource, using the name you provide as `SshKeyName`. The SSH key resource can be reused for creating additional VMs. Both the public and private keys will also downloaded for you. When you create your SSH key pair using the Cloud Shell, the keys are stored in a [storage account that is automatically created by Cloud Shell](../../cloud-shell/persisting-shell-storage.md). Don't delete the storage account, or the file share in it, until after you have retrieved your keys or you will lose access to the VM.
4141

4242
You will be prompted for a user name that will be used when you connect to the VM. You will also be asked for a password, which you can leave blank. Password login for the VM is disabled when using an SSH key.
4343

@@ -65,9 +65,6 @@ Public key is saved to /home/user/.ssh/1234567891.pub
6565

6666
Make a note of the path to your private key to use later.
6767

68-
When you create your SSH key pair using the Cloud Shell, the local version is stored in a [storage account that is automatically created by Cloud Shell](../../cloud-shell/persisting-shell-storage.md). Don't delete the storage account, or the file share in it, until after you have retrieved your keys or you will lose access to the VM.
69-
70-
7168
It will take a few minutes for your VM to be deployed. When the deployment is finished, move on to the next section.
7269

7370

@@ -76,7 +73,7 @@ It will take a few minutes for your VM to be deployed. When the deployment is fi
7673
You need to change the permission on the SSH key using `chmod`. Replace *~/.ssh/1234567891* in the following example with the private key name and path from the earlier output.
7774

7875
```azurepowershell-interactive
79-
chmod 400 ~/.ssh/1234567891
76+
chmod 600 ~/.ssh/1234567891
8077
```
8178

8279
Create an SSH connection with the VM using the public IP address. To see the public IP address of the VM, use the [Get-AzPublicIpAddress](/powershell/module/az.network/get-azpublicipaddress) cmdlet:

0 commit comments

Comments
 (0)