From 03d8a8194c438bd35078458fd7ba2b8f734b8960 Mon Sep 17 00:00:00 2001 From: Phoenix / Hotaru Date: Fri, 11 Nov 2022 15:46:32 +0000 Subject: [PATCH] Tweaked the ssh name and set it so a comment about the key is in the file. --- src/content/posts/windows-yubikey-guide/openssh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/posts/windows-yubikey-guide/openssh.md b/src/content/posts/windows-yubikey-guide/openssh.md index 4981a41..b5db46e 100644 --- a/src/content/posts/windows-yubikey-guide/openssh.md +++ b/src/content/posts/windows-yubikey-guide/openssh.md @@ -48,7 +48,7 @@ $keyPath = Join-Path $env:USERPROFILE '/.ssh/' $env:USERNAME $keySN = ykman info | Select-String "Serial number:"; $keySN = $keySN.Line.split(); $keySN = $keySN[2] -ssh-keygen -t ecdsa-sk -f $keyPath-$keySN-yubikey-master -O resident +ssh-keygen -t ecdsa-sk -f $keyPath-yubikey-$keySN -O resident -C "yubikey-$keySN <$env:USERNAME>" ``` If this is a new Key, Windows may ask you to setup a pin for the Yubikey.