leni1
July 1, 2024, 9:37am
1
I am trying to setup Split SSH using the community guide here
I have two vaults, vault-1
and vault-2
. I would like do something like this in my SSH policy file:
qubes.SshAgent * ssh-client vault-1,vault-2 ask target=vault-1
The idea being that the ssh-client
VM can access both vault VMs and I can select the vault VM to use when calling SSH (for lack of a better description)
You can try to create the separate policies like this:
qubes.SshAgent * ssh-client vault-1 ask target=vault-1
qubes.SshAgent * ssh-client vault-2 ask target=vault-1
Or use qvm-tags
command to add tag to vault-1
and vault-2
:
qvm-tags add vault-1 SshAgent_ssh-client
qvm-tags add vault-2 SshAgent_ssh-client
https://dev.qubes-os.org/projects/core-admin-client/en/latest/manpages/qvm-tags.html
And then use this tag as destination in policy:
qubes.SshAgent * ssh-client @tag:SshAgent_ssh-client ask target=vault-1
(This page is about qrexec v3. For qrexec v2, see here.) The qrexec framework is used by core Qubes components to implement communication between domains. Qubes domains are strictly isolated by design. However, the OS needs a mechanism to allow the...
2 Likes
leni1
July 1, 2024, 10:29am
3
Thanks. You’ve helped me confirm if I could have multiple lines in the policy.
I will opt for that for now. If I get more vaults, I may switch to using tags