I've got a zipped file on server A, B, C. I want to unzip these from server Z.
The command ssh -f ip "unzip path/file.zip"
is searching for the path on the server where I run the command and not on the specified IP. What am I doing wrong?
Try this:
ssh user@A "unzip path/file.zip"
If it is working, then add -f
to put it in background:
ssh -f user@A "unzip path/file.zip"
ssh -f user@B "unzip path/file.zip"
ssh -f user@C "unzip path/file.zip"
ssh -f ip "tar zxf file.tar.gz"
but I can't imagine that unzip would be any different.