]> git.ipfire.org Git - thirdparty/systemd.git/commit
ssh-proxy: add ssh ProxyCommand tool that can connect to AF_UNIX + AF_VSOCK sockets
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2024 22:31:51 +0000 (23:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jan 2024 15:05:20 +0000 (16:05 +0100)
commit0abd510f7f628d0369f0814b671302e93c62b161
tree5634a8ec751cde1f6edc87a5df55f3dc245d2c4f
parent0e3220684c6184a2f70396d991200ae207a25377
ssh-proxy: add ssh ProxyCommand tool that can connect to AF_UNIX + AF_VSOCK sockets

This adds a tiny binary that is hooked into SSH client config via
ProxyCommand and which simply connects to an AF_UNIX or AF_VSOCK socket
of choice.

The syntax is as simple as this:

     ssh unix/some/path     # (this connects to AF_UNIX socket /some/path)

or:

     ssh vsock/4711

I used "/" as separator of the protocol ID and the value since ":" is
already taken by SSH itself when doing sftp. And "@" is already taken
for separating the user name.
man/rules/meson.build
man/systemd-ssh-proxy.xml [new file with mode: 0644]
meson.build
meson_options.txt
src/ssh-generator/20-systemd-ssh-proxy.conf.in [new file with mode: 0644]
src/ssh-generator/meson.build
src/ssh-generator/ssh-proxy.c [new file with mode: 0644]
tmpfiles.d/20-systemd-ssh-generator.conf.in [new file with mode: 0644]
tmpfiles.d/meson.build