I have a MacBook which has a Yubikey. I usually don't use my MacBook for any development. I use a remote Linux server. I would like to sign my commits with Yubikey instead of a gpg key.

Can I share my Yubikey via ssh to my remote Linux machine?

What are the disadvantages? Am I missing something?


1 Answer 1


What you need is probably Agent Forwarding, which let's a remote computer perform cryptographic operations using GPG on your local computer, via a SSH Channel.

That should allow you to use a GPG key stored on your computer or a key card.

A somewhat more detailed writeup is also available.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .