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

Reindl Harald h.reindl at thelounge.net
Thu Oct 22 14:12:22 PDT 2015



Am 22.10.2015 um 23:07 schrieb Mikhail Kasimov:
> 1. systemd services have a special key (-H) to connect to remote host
> via ssh. E.g. 'timedatectl -H user at host'. By default port 22 is used.
> But in very often cases admins change the default ssh-port in
> sshd-daemon settings (e.g. 41122). It's useful to avoid connections from
> ssh-bruteforce robots.
> But systemd has no way (I can't find it in man-pages for example) how to
> define the admin-defined ssh connection port (possibly, other ssh
> options are also not accessable). The workaround is to define: 'ssh -p
> 41122 user at host' in console and then, after connection in on, proceed
> 'timedatectl' on remote host.
> But in this way it's not clear the profit of sysmted's -H key and this
> functionality looks redundant as for me.
>
> Solutions:

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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20151022/33304f97/attachment.sig>


More information about the systemd-devel mailing list