I have a quite simple problem but am unable to fix it. I want to remote control my virtual machine (ubuntu, host is windows) via ssh and plink (only way I could execute my one liner which is crucial for my use case). So my cmd command looks something like this:
plink -ssh user@ip -pw password command-on-remote-device
My command on the downside is a rosbag command which is set up for my virtual machine but not for my windows host and so I get a "bash: rosbag: command not found" error trying to execute my command - I guess its trying to execute my command on the windows machine and not on my remote device itself (executing it in the putty terminal works fine). I even tried to write my command in an textfile and execute it via plink -ssh user@ip -pw password command.txt but got the same error (same file executed while being "logged in" via ssh works fine but doesn't help me).
How can I execute my ssh command on my remote device?
EDIT: Found a solution. The problem was the ros-command itself. For anyone with the same problem I would suggest this post