Skip to content

Commit 6ab0981

Browse files
Merge pull request #279548 from mattmcinnes/patch-118
[GH Issue] Update linux-vm-connect.md
2 parents a3f8b8e + a11b5be commit 6ab0981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/virtual-machines/linux-vm-connect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.collection: linux
66
ms.service: virtual-machines
77
ms.custom: linux-related-content
88
ms.topic: article
9-
ms.date: 04/06/2023
9+
ms.date: 06/27/2024
1010
ms.author: mattmcinnes
1111
ms.reviewer: jamesser
1212
---
@@ -153,7 +153,7 @@ Once the above prerequisites are met, you're ready to connect to your VM. Open y
153153
If you have never connected to the desired VM from your current SSH client before you're asked to verify the host's fingerprint. While the default option is to accept the fingerprint presented, you're exposed to a possible "person in the middle attack". You should always validate the host's fingerprint, which only needs to be done the first time your client connects. To obtain the host fingerprint via the portal, use the Run Command feature to execute the command:
154154

155155
```azurepowershell-interactive
156-
Invoke-AzVMRunCommand -ResourceGroupName 'myResourceGroup' -VMName 'myVM' -CommandId 'RunPowerShellScript' -ScriptString
156+
Invoke-AzVMRunCommand -ResourceGroupName 'myResourceGroup' -VMName 'myVM' -CommandId 'RunShellScript' -ScriptString
157157
'ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub | awk '{print $2}''
158158
```
159159

0 commit comments

Comments
 (0)