How to access NuttX Shell from terminal Pixhawk v1/v2

Hello, I’m trying to access the NSH on the pixhawk v1 without using the Mission Planner console,and I do not have an FTDI cable, is there any way to access it directly from terminal?

PX4 firmware has a python script for shell access over mavlink.