You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note** An additional Python package dependency may need to be installed to use [`ykman`](https://support.yubico.com/support/solutions/articles/15000012643-yubikey-manager-cli-ykman-user-guide) - `pip install yubikey-manager`
196
+
> [!NOTE]
197
+
> An additional Python package dependency may need to be installed to use [`ykman`](https://support.yubico.com/support/solutions/articles/15000012643-yubikey-manager-cli-ykman-user-guide) - `pip install yubikey-manager`
196
198
197
199
**NixOS**
198
200
@@ -311,7 +313,8 @@ use-agent
311
313
throw-keyids
312
314
```
313
315
314
-
**Note** Networking can be disabled for the remainder of the setup.
316
+
> [!IMPORTANT]
317
+
> Networking should be disabled for the remainder of the setup.
315
318
316
319
## Identity
317
320
@@ -524,7 +527,8 @@ $ sudo fdisk -l /dev/sdc
524
527
Disk /dev/sdc: 14.9 GiB, 15931539456 bytes, 31116288 sectors
525
528
```
526
529
527
-
**Warning** Confirm the destination (`of`) before issuing the following command - it is destructive! This guide uses `/dev/sdc` throughout, but this value may be different on your system.
530
+
> [!WARNING]
531
+
> Confirm the destination (`of`) before issuing the following command - it is destructive! This guide uses `/dev/sdc` throughout, but this value may be different on your system.
528
532
529
533
Zero the header to prepare for encryption:
530
534
@@ -821,7 +825,8 @@ EOF
821
825
822
826
Remove and re-insert YubiKey.
823
827
824
-
**Warning** Three incorrect *User PIN* entries will cause it to become blocked and must be unblocked with either the *Admin PIN* or *Reset Code*. Three incorrect *Admin PIN* or *Reset Code* entries will destroy data on YubiKey.
828
+
> [!CAUTION]
829
+
> Three incorrect *User PIN* entries will cause it to become blocked and must be unblocked with either the *Admin PIN* or *Reset Code*. Three incorrect *Admin PIN* or *Reset Code* entries will destroy data on YubiKey.
825
830
826
831
The number of [retry attempts](https://docs.yubico.com/software/yubikey/tools/ykman/OpenPGP_Commands.html#ykman-openpgp-access-set-retries-options-pin-retries-reset-code-retries-admin-pin-retries) can be changed, for example to 5 attempts:
827
832
@@ -1167,7 +1172,8 @@ Encryption:
1167
1172
ykman openpgp keys set-touch dec on
1168
1173
```
1169
1174
1170
-
**Note** Versions of YubiKey Manager before 5.1.0 use `enc` instead of `dec` for encryption:
1175
+
> [!NOTE]
1176
+
> YubiKey Manager prior to versions 5.1.0 use `enc` instead of `dec` for encryption:
1171
1177
1172
1178
```console
1173
1179
ykman openpgp keys set-touch enc on
@@ -1351,7 +1357,7 @@ The goal is to configure SSH client inside WSL work together with the Windows ag
1351
1357
1352
1358
See the [WSL agent architecture](media/schema_gpg.png) illustration for an overview.
1353
1359
1354
-
**Note**GnuPG forwarding for cryptographic operations is not supported. See [vuori/weasel-pageant](https://github.com/vuori/weasel-pageant) for more information.
1360
+
GnuPG forwarding for cryptographic operations is not supported. See [vuori/weasel-pageant](https://github.com/vuori/weasel-pageant) for more information.
1355
1361
1356
1362
One way to forward is just `ssh -A` (still need to eval weasel to setup local ssh-agent), and only relies on OpenSSH. In this track, `ForwardAgent` and `AllowAgentForwarding` in ssh/sshd config may be involved. However, when using ssh socket forwarding, do not enable `ForwardAgent` in ssh config. See [SSH Agent Forwarding](#ssh-agent-forwarding) for more information. This requires Ubuntu 16.04 or newer for WSL and Kleopatra.
1357
1363
@@ -1367,7 +1373,7 @@ Edit `~/.ssh/config` to add the following for each agent forwarding host:
Then update the repository URL to `[email protected]:USERNAME/repository`
1621
1629
1622
-
**Note** For the error `gpg: signing failed: No secret key` - run `gpg --card-status` with YubiKey plugged in and try the git command again.
1623
-
1624
1630
## GnuPG agent forwarding
1625
1631
1626
1632
YubiKey can be used sign git commits and decrypt files on remote hosts with GnuPG Agent Forwarding. To ssh through another network, especially to push to/pull from GitHub using ssh, see [Remote Machines (SSH Agent forwarding)](#ssh-agent-forwarding).
**Note** The pinentry program starts on the *local* host, not remote.
1683
+
> [!IMPORTANT]
1684
+
> The pinentry program starts on the *local* host, not remote.
1678
1685
1679
1686
**Important** Any pinentry program except `pinentry-tty` or `pinentry-curses` may be used. This is because local `gpg-agent` may start headlessly (by systemd without `$GPG_TTY` set locally telling which tty it is on), thus failed to obtain the pin. Errors on the remote may be misleading saying that there is *IO Error*. (Yes, internally there is actually an *IO Error* since it happens when writing to/reading from tty while finding no tty to use, but for end users this is not friendly.)
1680
1687
@@ -1694,7 +1701,7 @@ Host third
1694
1701
1695
1702
You should change the path according to `gpgconf --list-dirs agent-socket` on *remote* and *third*.
1696
1703
1697
-
**Note** On *local* you have `S.gpg-agent.extra` whereas on *remote* and *third*, you only have `S.gpg-agent`
1704
+
On *local* you have `S.gpg-agent.extra` whereas on *remote* and *third*, you only have `S.gpg-agent`
1698
1705
1699
1706
## Using multiple YubiKeys
1700
1707
@@ -2044,7 +2051,8 @@ sudo service rng-tools restart
2044
2051
2045
2052
## Enable KDF
2046
2053
2047
-
**Note** This feature may not be compatible with older GnuPG versions, especially mobile clients. These incompatible clients will not function because the PIN will always be rejected.
2054
+
> [!IMPORTANT]
2055
+
> This feature may not be compatible with older GnuPG versions, especially mobile clients. These incompatible clients will not function because the PIN will always be rejected.
2048
2056
2049
2057
This step must be completed before changing PINs or moving keys or an error will occur: `gpg: error for setup KDF: Conditions of use not satisfied`
0 commit comments