From 7149a5765f082d576f3529f16903a50e1c479f9a Mon Sep 17 00:00:00 2001 From: yourfate <47528796+yourfate@users.noreply.github.com> Date: Sun, 24 Oct 2021 12:25:29 +0200 Subject: [PATCH] Added section about usage with ssh config Added section about the in my opinion easiest way to use this library. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index c565e01..909f67a 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,28 @@ You may also completely omit the explicit library specification if you place the `SSH_SK_PROVIDER` environment variable definition in your `.bashrc` or whatever your shell's equivalent file is. +### Use with ssh client config file + +You can specify to use windows-fido-bridge on a per-host basis in your client +ssh config file. That way you don't need any special commands to connect to the +host. In your `~/.ssh/config` file, add these lines for your host: + +``` +Host myserver + HostName myserver.mydomain.org + IdentityFile ~/.ssh/id_ed25519_sk + SecurityKeyProvider=/usr/local/lib/libwindowsfidobridge.so +``` + +Where `id_ed25519_sk` is the key stub for your private key on the security key. +Using this you can now just do + +``` +ssh myserver +``` + +and the connection to the server using your security key will work. + ### Use from Windows If you want to be able to run `ssh` from a Windows command prompt without first