Tweaked the ssh name and set it so a comment about the key is in the file.

This commit is contained in:
2022-11-11 15:46:32 +00:00
parent 3da0753220
commit 03d8a8194c

View File

@@ -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.