diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-04 23:31:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-11 16:05:20 +0100 |
commit | 0abd510f7f628d0369f0814b671302e93c62b161 (patch) | |
tree | 5634a8ec751cde1f6edc87a5df55f3dc245d2c4f /tmpfiles.d | |
parent | ssh-generator: add simple new generator (diff) | |
download | systemd-0abd510f7f628d0369f0814b671302e93c62b161.tar.xz systemd-0abd510f7f628d0369f0814b671302e93c62b161.zip |
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.
Diffstat (limited to 'tmpfiles.d')
-rw-r--r-- | tmpfiles.d/20-systemd-ssh-generator.conf.in | 10 | ||||
-rw-r--r-- | tmpfiles.d/meson.build | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tmpfiles.d/20-systemd-ssh-generator.conf.in b/tmpfiles.d/20-systemd-ssh-generator.conf.in new file mode 100644 index 0000000000..033379ec7a --- /dev/null +++ b/tmpfiles.d/20-systemd-ssh-generator.conf.in @@ -0,0 +1,10 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +# See tmpfiles.d(5) for details + +L {{SSHCONFDIR}}/20-systemd-ssh-proxy.conf - - - - {{LIBEXECDIR}}/ssh_config.d/20-systemd-ssh-proxy.conf diff --git a/tmpfiles.d/meson.build b/tmpfiles.d/meson.build index 390076b6d5..d05ea94c16 100644 --- a/tmpfiles.d/meson.build +++ b/tmpfiles.d/meson.build @@ -35,6 +35,7 @@ in_files = [['etc.conf', ''], ['systemd.conf', ''], ['var.conf', ''], ['20-systemd-userdb.conf', 'ENABLE_USERDB'], + ['20-systemd-ssh-generator.conf', ''], ] foreach pair : in_files |