On the Remote Machine:


Install GDBServer


sudo apt-get install gdbserver


Start the application

gdbserver :1234 /path/to/your/rust_executable