I have files in a .zip archive I want to upload to a remote server over ssh. I want to avoid uploading and then unzipping because the remote server has limited space.
I could unzip the archive locally and then upload the unzipped files. That seems wasteful and then I have to do some cleanup.
Ideally, I'd like the files that get unpacked from the archive to get sent directly to the remote server instead of saved to the local host. Is there a way to do this over ssh?
busybox unzip -
on the ssh command line and it should work. I think your idea of just moving to tar is a better option though.