Running NUT (Network UPS Tools) with iHost/Docker

Hi guys!

I’d like to install a NUT (Network UPS Tools) server in a Docker container/image residing at my iHost.

I’ve connected the iHost USB-A port to my UPS (a CyberPower) and, so far, the big challenge has been on how to identify the iHost’s USB path/device and use it with the NUT server. To tell you the truth, I’m not even sure if iHost recognizes the UPS as a valid device.

Has anyone had any success doing it?

Thanks!

Several users have successfully run NUT (Network UPS Tools) in a Docker container on various hosts, including with CyberPower UPS units, but identifying and passing through the USB device to the container is the hardest part.
First, check whether your iHost detects the UPS. Use lsusb or dmesg | grep -i usb to see if the device shows up when connected. There are plenty of guides and practical write-ups online, so search around. One of them will likely get you the result you’re after. That said, using iHost for this role isn’t exactly ideal, since support for USB HID with UPS devices is uncertain.

Thank you @jam3 for your answer.

I’m new to iHost and I’ve tried to connect to it using SSH and it failed - it answers with “connection refused”. I’ve tried to find more information about SSH/console, but to no avail.

So, how do I get access to the console/terminal?

Thanks again!

If you’re trying to access your iHost device via SSH and getting a “connection refused” error, here are the most likely causes and steps to resolve it:

  • SSH server not running on the iHost device
  • SSH port (usually 22) blocked by firewall or not exposed
  • Incorrect IP address or hostname
  • SSH disabled by default in iHost firmware or configuration

I’m afraid I have to temper your enthusiasm. SSH is not enabled by default. With iHost, there’s simply no need for it, and that’s not unusual given its intended purpose. But it’s best to ask at the source - reach out directly to Sonoff. Note that this is the eWeLink forum; they work closely together, but they’re not the same entity.

I’ll take a shot at Sonoff. Let’s see what I get there - hope must be the last one to die! :joy:

Thanks!!!