diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-08 22:26:17 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-08 23:24:45 +0100 |
commit | a1bb30de7f5d9c4f7f01061240d984a786d5d00c (patch) | |
tree | f2105b8c3a009b0ca051d512480776a2fc9d70eb /docs/ENVIRONMENT.md | |
parent | varlink: turn off O_NONBLOCK in exec: transport (diff) | |
download | systemd-a1bb30de7f5d9c4f7f01061240d984a786d5d00c.tar.xz systemd-a1bb30de7f5d9c4f7f01061240d984a786d5d00c.zip |
varlink: add "ssh:" transport
This uses openssh 9.4's -W support for AF_UNIX. Unfortunately older versions
don't work with this, and I couldn#t figure a way that would work for
older versions too, would not be racy and where we'd still could keep
track of the forked off ssh process.
Unfortunately, on older versions -W will just hang (because it tries to
resolve the AF_UNIX path as regular host name), which sucks, but hopefully this
issue will go away sooner or later on its own, as distributions update.
Fedora is still stuck at 9.3 at the time of posting this (even on
Fedora), even though 9.4, 9.5, 9.6 have all already been released by
now.
Example:
varlinkctl call -j ssh:root@somehost:/run/systemd/io.systemd.Credentials io.systemd.Credentials.Encrypt '{"text":"foobar"}'
Diffstat (limited to 'docs/ENVIRONMENT.md')
-rw-r--r-- | docs/ENVIRONMENT.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ENVIRONMENT.md b/docs/ENVIRONMENT.md index 0113fd59fa..e3daabe3bc 100644 --- a/docs/ENVIRONMENT.md +++ b/docs/ENVIRONMENT.md @@ -610,3 +610,8 @@ SYSTEMD_HOME_DEBUG_SUFFIX=foo \ latter two via the environment variable unless `systemd-storagetm` is invoked to expose a single device only, since those identifiers better should be kept unique. + +Tools using the Varlink protocol, such as `varlinkctl`: + +* `$SYSTEMD_SSH` – the ssh binary to invoke when the `ssh:` transport is + used. May be a filename (which is searched for in `$PATH`) or absolute path. |