The 'adb shell' is terminated immediately

Hi, there.
Today, I tried to use the ‘adb shell’ on the image below.
rock-3a-debian-buster-xfce4-arm64-20220221-0508-gpt.img.xz
After setting the USB OTG switch to the device side(silk screen) and connecting to my linux pc with type A to A usb cable, I set up the Rock 3A following the instruction of
https://wiki.radxa.com/Rock3/dev/adb

$ sudo apt-get update
$ sudo apt-get install -y rockchip-overlay
$ sudo apt-get install -y linux-4.19-rock-3-latest # (>=4.19.193-5-rockchip)
$ sudo apt-get install -y rockchip-adbd
$ sudo reboot

Then, my linux PC(Ubuntu 18.04) detected the device of Rock 3A. The command and response is below.
$ adb devices
List of devices attached
0123456789ABCDEF device

Everything up to this point was fine.
However, after “adb shell” command and prompt of #, this connection was terminated. The Rock 3A is never detected as OTG device until reboot.

Please let me know any solution.
Thanks.

Hello, everyone.
It was solved. But I don’t know why. I re-installed the Vmware-tools and Ubuntu ver 18.04/20.04 many times. Suddenly, this failure had gone. Now, the “adb shell” is stable for many Ubuntu versions on the Vmware workstation player 16.
Thanks.

You should just pass-through the USB to the VM.

Thanks, Jack.
Yes, I set it. After the command of “adb shell” and prompt of “#”, this icon had gone (return to host mode) , then I had to reboot the Rock 3A. I don’t know why. May be it’s the Vmware tools related issue though that is not clear.
Anyway, now I can use the “adb push” command to study the rknn-toolkit2. It’s very convenient compared to using scp command.
Thanks again.