machine_setup/ansible/roles/ssh_client/files/gpg_auth_freebsd
2023-02-25 18:16:34 -05:00

10 lines
275 B
Bash

#!/usr/bin/env bash
#
# Wrapper to set the SSH auth socket to GPG for services that do not
# yet support security key ssh keys
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
exec env SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh" "$@"