Perhaps SSH via USB-cable to your Android does not work, due to the wrong adapter. Here are some connection methods described, which work for SSH:
5 вариантов подключения к CMU Mazda — Mazda 3, 1.6 л., 2015 года на DRIVE2 (in russian, but you could eg. use Chrome`s automatic translator). You have to use another fixed IP-address and port, like mentioned there.
For me SSH worked via USB-Ethernet Adapter with an Asix AX88772A-Chip to my notebook/laptop. I think I had to give the adapter a fixed IP-address.
Also it worked via WiFi Hotspot created by my mobile phone (MZD and notebook/laptop were connected to it) and then using SSH via notebook/laptop.
Thank you that did help. I used your last method via WiFi Hotspot to make it work. I am able to SSH in now.
However, I am still having issues getting CastScreen to work.
My environment:
CMU: NA 70.00.335C
Phone: Android 12
installed AIO tweaks, CastScreen Receiver, etc...
I have tried couple different methods.
Method 1:
I have connected the usb cable to the phone and the CMU is connected to my phone's hotspot. I have USB debugging on. I have CastScreen 1.0.1 apk installed on the phone and have used H264, 800x480 @ 160, 1 Mbps
Set receiver to 127.0.0.1 clicked receiver than start. In the ssh terminal I don't see anything after following the steps for debugging.
Method 2:
I have connected the usb cable to the phone and the CMU is connected to my phone's hotspot. I have USB debugging on. used H264, 800x480 @ 160, 1 Mbps
Set receiver to 192.168.24.30 and click start. That makes my phone thing it is casting and I do see some activity in the SSH terminal but I don't see anything show up on the MAZDA connect screen.
I have reinstalled the castscreen receiver on the CMU and tried methods 1 and 2 again to no luck. I know the usb cable does send some data as the MAZDA's native Android Auto works with my phone. I turn Android Auto off in the settings of the MAZDA then make sure the usb is in PTP. I tried MIDI and File sharing modes as well to no luck
Any ideas?