Using Mac OS X ML to compile for Linux Debian 64

Hello, recently I’ve been using a SSH connection to my Linux machine (which has a good GPU) for development. Finally I’ve seen that nSight 5.5 supports remote execution and debugging and would like to use this features on my Mac, compiling for the Linux architecture and remote executing and debugging.
I know this is cross-compiling, I’ve did some research and haven’t found any clear instructions on how to make this happen, is it even possible?

Thanks for your help.

You need to compile binary on Linux target(or server) machine firstly, and then you can remote debug via Mac client(or Host).