]>
git.rmz.io Git - dotfiles.git/blob - bin/old/ssh-gpg
3 remote_socket
="$(ssh "$@" gpgconf --list-dirs agent-socket)"
4 local_socket
="$(gpgconf --list-dirs agent-extra-socket)"
5 [[ ! -S "$local_socket" ]] && local_socket
="$(gpgconf --list-dirs agent-socket)"
6 [[ ! -S "$local_socket" ]] && gpg
-connect-agent /bye
8 ssh -R"$remote_socket":"$local_socket" "$@"