1

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?

7
  • It works on my machine...
    – user55325
    Nov 13, 2012 at 8:40
  • May be you should login to server Z and then ssh to A, B and C servers?
    – int
    Nov 13, 2012 at 8:56
  • @init: the ssh is run on Z.
    – Mish'al
    Nov 13, 2012 at 9:10
  • @user55325: could ypu post the command uv run?
    – Mish'al
    Nov 13, 2012 at 9:11
  • I actually did ssh -f ip "tar zxf file.tar.gz" but I can't imagine that unzip would be any different.
    – user55325
    Nov 13, 2012 at 18:05

1 Answer 1

1

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"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .