Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
show 1 more comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.