> For the complete documentation index, see [llms.txt](https://docs.k9.io/key9-security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.k9.io/key9-security/ssh/installation-and-setup/windows-yubikey-smartcard-piv-instructions/2.-getting-the-system-ready-for-libykcs11.dll.md). Agents can also search and read this documentation through its [MCP server](https://docs.k9.io/key9-security/~gitbook/mcp).

# 2. Getting the system ready for libykcs11.dll

First, verify that your native version of SSH is at least *OpenSSH\_for\_Windows\_8.1p1*. To verify, open a command prompt and type:&#x20;

`ssh -V`

If the version is greater than 8.1p1, then continue.  Otherwise,  upgrade your SSH client.&#x20;

For your SSH client to be able to use the `libykcs11.dll` library,  it will need to be within your system's `PATH`.&#x20;

To do this, &#x20;

1. **System Properties -> Advanced -> Environment Variables -> System variables**&#x20;
2. Select the "**Path**" and then "**Edit**..."

<figure><img src="https://2354768316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZbcN0W0VyihswJIdHDaE%2Fuploads%2FqwZfnIDbnnUHPvD0Arsr%2Fimage.png?alt=media&amp;token=bea866a3-9818-4ab7-a39c-b951957e53b8" alt=""><figcaption><p>"System Properties" - Environment Variables in the bottom right.</p></figcaption></figure>

3. Enter "**C:\Program Files\Yubico\Yubico PIV Tool\bin\\**" as part of your new PATH.

<figure><img src="https://2354768316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZbcN0W0VyihswJIdHDaE%2Fuploads%2F9kDgTiDGFQbZZf88O8hw%2Fimage.png?alt=media&amp;token=495d97b8-9e61-4cd4-8519-d5b31de77f12" alt=""><figcaption><p>Editing PATH </p></figcaption></figure>

4. Click on "OK". &#x20;

On Windows 11,  another way to locate this section is to search for "**system variables**" and then select "**Environment Variable**"
