mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-19 12:54:35 -05:00
15 lines
335 B
Bash
15 lines
335 B
Bash
#!/bin/sh
|
|
|
|
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
set -eu
|
|
|
|
#origin="$QREXEC_REMOTE_DOMAIN"
|
|
agent="$QREXEC_SERVICE_ARGUMENT"
|
|
socket="/tmp/qubes-ssh-agent/${agent}.sock"
|
|
|
|
qvm-ssh-agent add "${agent}" >/dev/null
|
|
exec socat STDIO UNIX-CLIENT:"$socket"
|