#23785·podman

Share SSH agent with Podman container on macOS

Author: arthurbarrCreated Aug 28, 2024Updated Sep 16, 2026
Labelskind/featurestale-issuemacosmachine

Feature request description

Since the move to virtiofs, you can no longer share the SSH agent from the macOS host into a Podman container. We need a way to share the SSH agent, particularly so that we can handle hardware SSH keys (e.g. YubiKey), where the key isn't available as a file to mount into the container.

Suggest potential solution

Allow SSH agent (socket) to be shared into a Podman container on macOS.

Have you considered any alternatives?

Alternative for the YubiKey case could be to expose the USB device into the Podman Machine VM, but that isn't possible with Podman and applehv.

Additional context

Briefly discussed in https://github.com/containers/podman/issues/23245

Source: podman-container-tools/podman