openssh - execute cross-compiled binary on remote PC
up vote
0
down vote
favorite
I'm cross-compiling a C++ application and have written a one-liner that copies the file to the target PC after compilation. Now I would like to execute the binary using the remote PC resources. The problem is that the binary executes using local PC resources. No output is required to be sent back to compilation PC. I imagine the solution could be very simple but I can't see how to do it without using a complex tool such as vnc. Please can you suggest how I might go about accomplishing this as a one-liner? sshpass -p "myPassword" scp /path/to/compiled/binary/on/host user@remotePC:/path/to/compiled/binary/on/target && sshpass -p "myPassword" ssh user@remotePC "path/to/compiled/binary/on/target"
remote-access ...