[systemd-devel] systemd services via SSH (-H key)

Lennart Poettering lennart at poettering.net
Fri Oct 23 04:11:13 PDT 2015


On Fri, 23.10.15 14:03, Mantas Mikulėnas (grawity at gmail.com) wrote:

> On Fri, Oct 23, 2015 at 1:55 PM, Lennart Poettering <lennart at poettering.net>
> wrote:
> 
> > On Fri, 23.10.15 00:59, Reindl Harald (h.reindl at thelounge.net) wrote:
> >
> > >
> > >
> > > Am 23.10.2015 um 00:39 schrieb Ivan Shapovalov:
> > > >On 2015-10-22 at 23:12 +0200, Reindl Harald wrote:
> > > >>[...]
> > > >>and why not simply "timedatectl -H user at host[:port]" since host:port
> > > >>is
> > > >>a well known protocol agnostic way to specify a non-default port?
> > > >
> > > >Because the syntax of -H parameter is "[user@]host[:container]"
> > > >and it does not allow specifying an explicit port number.
> > >
> > > [user@]host[:container][:port]
> > > [user@]host[:port][:container]
> > >
> > > nothing unusual
> >
> > Nope. The idea is that
> >
> >       foo:bar:baz:waldo
> >
> > is kind of "path": connect to host "foo", enter its container "bar",
> > and from there connect to "bar"'s container "baz" and then further
> > down into "baz"'s container "waldo"... Containers are stackable after
> > all.
> >
> 
> The usual path separator would be "/" or "!", then?

I have never seen "!" for this. (or well, maybe uucp, but christ...)

Also, my intention was to use "/" for seperating the unit name (see
other mail).

I'd claim this is in-line with how most URLs work, where "/" is used
to locate the resource on the final system, and everything before the
first "/" is the identifier of the system.

> Hopefully -H at least parses root@[2001:db8::1] correctly...

Nope, it won't. We just blindly look for the first ":"...

Would be willing to take a patch that makes such ipv6 references work.

The code is here:

https://github.com/systemd/systemd/blob/master/src/libsystemd/sd-bus/sd-bus.c#L1308

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list