SSH to unpack rar or zip

hello all,

Is it possible to use ssh to upload a zip or rar file, then unpack it on the server?
The reason I am asking is because if I try to ftp a directory of phpBB (for example), it takes ages to upload all the tiny files & many directories.
I would prefer to upload a single .rar file & unpack it (in theory should be very quick)

Any ideas?



Or, in the case of phpBB, just download the .tar.gz or tar.bz2 file in the first place.

thanks will,
i guess i just cd to the correct directory & execute the rar or tar command on the file?