qusal/salt/sys-ssh-agent/files/client/systemd/qusal-ssh-agent-forwarder@.service

19 lines
506 B
SYSTEMD
Raw Normal View History

# SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
2023-11-13 09:33:28 -05:00
#
# SPDX-License-Identifier: AGPL-3.0-or-later
[Unit]
Description=Forward SSH Agent %i over Qrexec
2023-11-13 09:33:28 -05:00
[Service]
User=user
Group=user
Type=simple
UMask=0177
ExecStartPre=/usr/bin/mkdir -m 700 -p -- %T/%p
2023-11-13 09:33:28 -05:00
ExecStartPre=/usr/bin/ssh-agent -a %T/%p/%i.sock
ExecStart=/usr/bin/socat UNIX-LISTEN:"%T/%p/%i.sock,unlink-early,reuseaddr,fork" EXEC:"qrexec-client-vm -- @default qusal.SshAgent+%i"
[Install]
WantedBy=default.target