On Sat, Sep 16, 2017 at 06:43:00PM +0000, 0xB44EFD8751077F97 wrote: > Using Qubes3.2, I'm attempting to create a communication > channel between two VMs. One VM without networking. I'd like to mimic > ssh -L port:localhost:port. > > I think a qrexec rpc should work, but I'm not sure what to include in > the rpc-action file. Any help is appreciated. > > Thanks!
Have a look at this using socat: https://github.com/QubesOS/qubes-issues/issues/2148 Although it's still marked as open, it works well and is used in Qubes 4.0. socat TCP-LISTEN:444,fork EXEC:"qrexec-client-vm target-vm my-tcp-service" does just what you want. If you had my-tcp-service on target-vm: socat STDIO TCP:localhost:22 You could 'ssh localhost:4444' and ssh in to target, even when target is not networked. A little simple scripting and you can have this as a general listener to connect to different services on targets. unman -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20170920222913.45njd55sneekmzwh%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.