Yubikey: Difference between revisions
imported>MrVanDalo No edit summary |
imported>Darthdeus add note on using gpgconf instead of hardcoding SSH_AUTH_SOCK path |
||
| Line 42: | Line 42: | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
Alternatively, <code>SSH_AUTH_SOCK</code> can be set more generally as | |||
<syntaxHighlight lang=bash> | |||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) | |||
</syntaxHighlight> | |||
if the right version of <code>gpgconf</code> is available <ref>https://github.com/drduh/YubiKey-Guide#replace-agents</ref>. Note that this might not work on all systems. | |||
== Offline key generation == | == Offline key generation == | ||
| Line 59: | Line 67: | ||
# Plug in the new YubiKey | # Plug in the new YubiKey | ||
# <code>gpg --card-status</code> (optional, to see if key is visibile) | # <code>gpg --card-status</code> (optional, to see if key is visibile) | ||
== References == | |||