Command line switch: shutdown remote via ssh

FYI there’s a section in that guide called Handling the known_hosts file which tells you how to deal with that file correctly. Turning off host key checking is bad security practice and isn’t necessary, you just have to move the file in the same way you did the keys.

Just adding -o UserKnownHostsFile=/config/.ssh_keys/known_hosts to your command and run it once from the ssh addon.

2 Likes