1
0
Fork 0

add rw/config/rc.local for ssh

This commit is contained in:
Anton Livaja 2025-03-03 10:22:34 -08:00
parent fcffdf221e
commit 0be5b92ee2
Signed by: anton
GPG Key ID: 44A86CFF1FDF0E85
1 changed files with 10 additions and 0 deletions

10
qubes/rw/config/rc.local Normal file
View File

@ -0,0 +1,10 @@
# SPLIT SSH CONFIGURATION >>>
# replace "vault" with your AppVM name which stores the ssh private key(s)
SSH_VAULT_VM="vault"
if [ "$SSH_VAULT_VM" != "" ]; then
export SSH_SOCK="/home/user/.SSH_AGENT_$SSH_VAULT_VM"
rm -f "$SSH_SOCK"
sudo -u user /bin/sh -c "umask 177 && exec socat 'UNIX-LISTEN:$SSH_SOCK,fork' 'EXEC:qrexec-client-vm $SSH_VAULT_VM qubes.SshAgent'" &
fi
# <<< SPLIT SSH CONFIGURATION