Did you know that `systemctl` has a host parameter?
`systemctl -H beko@someawesomehost·org status nginx`
…and it will come back just fine if your ssh config is properly set up and the ssh-key is loaded. (https://beko.famkos.net/t/RuZ)
@wuffel Dann ignoriere es doch einfach, no?
@bekopharm Was für eine eierwollende Legemilchsau 😂 👍
@Strubbl Joar. Skripte hier gerade was rum. Systemd kennt ja auch User-Tasks. Da ran kommen ist irgendwie immer von Hinten durch die Brust ins Knie oder so…
@bekopharm Ich verstehe nicht. Meinst du wegen dem --user Flag?
@Strubbl Ja. Und genau diese auch nur auszulesen - selbst mit root- ist nicht so trivial wie man meinen sollte. Ich probiere noch Alternativen. So das gelbe vom Ei habe ich noch nicht gefunden. XDG_RUNTIME_DIR überschreiben kommt mir jedenfalls falsch vor.
@bekopharm
No. Thanks
@bekopharm
Featuritis - und nicht die gute Art, da bestenfalls 1-2 Zeichen gespart werden ggü ssh-invocation
@bekopharm
Oh, I did not!
That aliases I will define will do greatly 🤓
@bekopharm
ob ich jetzt
ssh root@kiste 'systemctl blabla'
oder
systemctl -H root@kiste 'blabla'
mache, ist mir, Erich gesagt, herzlich wurscht.