mirror of
https://github.com/tommytran732/QubesOS-Scripts.git
synced 2024-10-01 00:55:37 -04:00
c542a1fec6
Signed-off-by: tommytran732 <contact@tommytran.io>
16 lines
486 B
Bash
16 lines
486 B
Bash
#!/bin/bash
|
|
|
|
echo '#!/bin/sh
|
|
# Qubes App Split SSH Script
|
|
|
|
# Activate GPG Agent and set the correct SSH socket
|
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
gpgconf --launch gpg-agent
|
|
|
|
# safeguard - Qubes notification bubble for each ssh request
|
|
notify-send "[$(qubesdb-read /name)] SSH agent access from: $QREXEC_REMOTE_DOMAIN"
|
|
|
|
# SSH connection
|
|
socat - "UNIX-CONNECT:$SSH_AUTH_SOCK"' | sudo tee /etc/qubes-rpc/qubes.SshAgent
|
|
|
|
sudo chmod +x /etc/qubes-rpc/qubes.SshAgent |