how to Connect or SSH real android device from local Macbook to Remote Centos7 vm server

He problem I’m having is that I have a VM(CENTOS7) running on a server, that VM is our development machine but the devices are plugged in on our local machine… is there a way I can plug my devices locally and access them from the remote VM?
this is the schema [server (VM)]—-[lan]—–[localmachine (nexus phone)] I read something about using ADB connect but it’s not working… don’t know if I’m doing it wrong.

thanks in advance!

Source: Docker Questions