Using ESP as a USB/serial terminal server

I have a network device with a USB(C) serial port for initial setup and emergency control. I would have liked to attach some ESPxx device to that port, and connect (via HTTP? SSH?..) to it, so that I will be interacting with the USB serial port in character mode. Think poor man’s IPMI remote access.
Is there a ready-made template that implements something like that?
Would appreciate any pointers. Thanks in advance.

The USB serial port part can be enabled with this:

Fabulous! Thanks for this (and for making this).
Can this affect the UART of the actual USB port on the ESP32 modules, or do I need to add extra h/w for the USB Host port?

The part that would remain is to connect to this, to allow terminal-like access from the remote host.