Skip to content

Commit 897211d

Browse files
committed
Task #544792: Replace SSH password authentication with SSH key authentication in tutorial-connect-virtual-networks.md
- Replaced --authentication-type password with --generate-ssh-keys for vm-1 (line 450) - Replaced --authentication-type password with --generate-ssh-keys for vm-2 (line 466) - Aligns with Azure security best practices by using SSH key pairs instead of password authentication - Both VMs in this peering tutorial now consistently use SSH key authentication
1 parent 3029b41 commit 897211d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

articles/virtual-network/tutorial-connect-virtual-networks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ az vm create \
447447
--vnet-name vnet-1 \
448448
--subnet subnet-1 \
449449
--admin-username azureuser \
450-
--authentication-type password \
450+
--generate-ssh-keys \
451451
--no-wait
452452
```
453453

@@ -463,7 +463,7 @@ az vm create \
463463
--vnet-name vnet-2 \
464464
--subnet subnet-1 \
465465
--admin-username azureuser \
466-
--authentication-type password
466+
--generate-ssh-keys
467467
```
468468

469469
The virtual machine takes a few minutes to create.

0 commit comments

Comments
 (0)