[systemd-devel] systemctl -H/--host does not work on hosts with systemd 213 and newer

Lennart Poettering lennart at poettering.net
Wed Jul 2 16:38:45 PDT 2014


On Tue, 24.06.14 14:40, Alexander Vladimirov (alexander.idkfa.vladimirov at gmail.com) wrote:

> Seems like remote command execution was broken somewhere around systemd 213
> 
> Remote access to systemd 212 host:
> [root at host1 ~]# systemctl --version
> systemd 212
> +PAM -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
> +SECCOMP -APPARMOR
> 
> $ systemctl -H idkfa at host1 status
> Enter passphrase for key '/home/idkfa/.ssh/id_rsa':
>idkfa at host1
>     State: degraded
>      Jobs: 0 queued
>    Failed: 3 units
>     Since: Вт 2014-06-10 17:58:32 KRAT; 1 weeks 6 days ago
>    CGroup: /
> 
> Remote access to systemd 214 host (same with systemd 213):
> [root at host2 ~]# systemctl --version
> systemd 214
> +PAM -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
> +SECCOMP -APPARMOR
> 
> $ systemctl -H idkfa at host2 status
> Failed to read server status: Connection timed out
> 
> Both hosts have the same authorized ssh key installed and systemd with
> default configuration.

Fixed in git!

And as special gimmick while I did this I also added a new trick to the code:

     $ systemctl -H root at foobar:waldo

This will connect as root to host "foobar", and then enter the container
"waldo" there.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list