Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
    
It works on my machine... – user55325 Nov 13 '12 at 8:40
    
May be you should login to server Z and then ssh to A, B and C servers? – int Nov 13 '12 at 8:56
    
@init: the ssh is run on Z. – Mish'al Nov 13 '12 at 9:10
    
@user55325: could ypu post the command uv run? – Mish'al Nov 13 '12 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 '12 at 18:05

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"

share|improve this answer

You must log in to answer this question.

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