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

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


On Fri, 23.10.15 13:04, Lennart Poettering (lennart at poettering.net) wrote:

> On Fri, 23.10.15 09:07, Stuart Longland (stuartl at longlandclan.id.au) wrote:
> 
> > On 23/10/15 08:59, Reindl Harald wrote:
> > >> 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]
> > 
> > Can a container name be all-numeric?
> 
> We make the same restrictions on container names as on host names. And
> that means all-numeric is OK.

Actually in this specific instance I am lying. We do not allow
fully-numeric ids in the -H case, we explicitly filter that out. See:

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