I am trying to move files on a remote machine from folder A to folder B via ssh.
I am using this command: ssh user@server "sh scan/script.sh"
This will run a script which contains some file operations, moving files around on the remove machine. The problem is that my SSH seems to attempt to execute the contents of script.sh on my local computer.
I am using zsh.
Thanks for the help
-vflag tosshto understand what is happenning – Basile Starynkevitch Jan 22 at 7:17