Build your Linux project. On main menu bar click Run->Debug configurations. Select C/C++ Remote Application in debug window main tab. Create new connection by clicking on New... button.
Select SSH connection type and fill connection details - IP address and user name.
When done - click to apply and start debug session. Your elf file will be upload to SD card and executed by gdbserver on target machine.