]> git.ipfire.org Git - thirdparty/systemd.git/commit
machined: add GetMachineSSHInfo method
authorSam Leonard <sam.leonard@codethink.co.uk>
Wed, 24 Apr 2024 17:08:13 +0000 (18:08 +0100)
committerLuca Boccassi <bluca@debian.org>
Wed, 8 May 2024 08:56:42 +0000 (09:56 +0100)
commit1f815bf1640c7a648d323f9331cd88f19cffc2c9
tree617234856ed2e1f67d9802d77031a606876ab9ec
parent885317f1aba9754856c3047277413004622c79a4
machined: add GetMachineSSHInfo method

Also adds three properties:
- VsockCid: the VSOCK CID of the VM
- SshAddress: the address of the VM in a format SSH can connect to
- SshPrivateKeyPath: the path to the SSH private key to use to connect
  to the VM.

GetMachineSSHInfo is essentially a convenience method to query both the
SshAddress and SshPrivateKeyPath properties at once.
man/org.freedesktop.machine1.xml
src/machine/machine-dbus.c
src/machine/machine-dbus.h
src/machine/machine.c
src/machine/machine.h
src/machine/machined-dbus.c