This commit is contained in:
Break27 2023-10-14 02:28:28 +08:00
parent 36366a9e3c
commit 20d57f45db
2 changed files with 4 additions and 3 deletions

View File

@ -82,7 +82,8 @@ class RemoteControl:
if command.startswith("ssh"):
head, tail = command.split(' ', 1)
slices = [head, "-oStrictHostKeyChecking=no", "-i", self.__ssh_key, tail]
flags = "-oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oLogLevel=ERROR"
slices = [head, flags, "-i", self.__ssh_key, tail]
command = ' '.join(slices)
process = await asyncio.create_subprocess_shell(

View File

@ -1,10 +1,10 @@
div.host[state='online'] button.remote-action[action='WAKE'],
div.host[state='offline'] button.remote-action[action='SHUTDOWN'],
div.host[state='unknown'] button.remote-action {
div.host:is([state='unknown'], [state='error']) button.remote-action {
display: none;
}
div.host[state='unknown'] div.remote-actions::before {
div.host:is([state='unknown'], [state='error']) div.remote-actions::before {
content: "⏳";
}