Logic Machine Forum
Restarting a device in same network using SSH - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Restarting a device in same network using SSH (/showthread.php?tid=2242)



Restarting a device in same network using SSH - MantasJ - 17.09.2019

Hello,

I have a situation where I can not access a device in a network anymore and I need to restart it. The client lives pretty far and I need to restart the device because otherwise he's visualisation won't work so I need to do this ASAP from a remote connection. I think I can do it via SSH, but how should I do it? Maybe there is a way to send SSH commands via LM? 

Thank You.


RE: Restarting a device in same network using SSH - admin - 17.09.2019

It's possible to send SSH commands from LM but for that you would need a key-based authentication to work on the other device, password-based auth won't work. Another solution is to add a relay to physically restart the device.

Can you explain what kind of device is this? Does the web server there stop working or something? If so you can create a monitoring script to check if device is running or not.