Posts: 82
Threads: 29
Joined: Jul 2015
Reputation:
2
Hi...
after watching a Movie on our HTPC we want to have the LM turn of the HTPC. I thought ssh + shutdown could do the trick, or is there a better / nicer way. The HTPC has a version of Ubuntu on it (not Windows).
Thanks
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
HTTP is a quick solution, for SSH to work from Lua you would have to use key auth, as you cannot pass the password directly. We can also provide sshpass utility but it will take some time.
Posts: 4
Threads: 1
Joined: Jun 2020
Reputation:
0
Hello,
I would like to ask for help connecting from Logic Machine to Mikrotik router.
I did all steps above (replacing file path to /lib/genohm-scada/storage/), but still unable to connect.
I repeated similar procedure with Mac PC and connection was successful, so Mikrotik part configuration seems working.
Tested if key present with io.exists(path), received true value.
Mikrotik LOG says connection dropped. If I change key path in Logic Machine script - error in Mikrotik log remains same, so I suppose Mikrotik do not get correct key…
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
There seems to be some kind of incompatibly between available ciphers in LM SSH client and Mirkotik SSH server. We'll have a look later.