Serial-getty service is the service which enable serial login on IDP XT 3.1 based gateway devices.
To prevent serial login it should be disabled.
To disable Serial-getty to particular serial port please refer the following steps.
In this example it disables serial-getty to ttyS0 serial port ie the COM port 0
$ systemctl disable serial-getty@ttyS0.service
$ systemctl mask serial-getty@ttyS0.service
reboot the system.
After reboot the login option wont appear on the serial port.
Retrieving data ...