Server Fault is a question and answer site for system and network administrators. 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

Is there a way to compress directories on a server without ssh access? We are transferring many domains and there is no ssh available on the current server. We would like to secure copy the directories over after compressed using tar or zip.

share|improve this question
up vote 2 down vote accepted

Sure, use any other method you have of running commands on the server to do the compression -- exec in a PHP script you upload, upload a shell script, telnet, use a known vulnerability in an installed web application on one of the sites... the possibilities are endless.

I'd just ask the hosting company to provide SSH access; if your hosting plan doesn't include SSH access, well, that's a bit of a planning fail (as it were).

share|improve this answer
Thank you, we have done this with a PHP script – jnolte Jul 28 '11 at 20:59

If you have php in the server, use a php shell (or python or ruby or whatever). For example but please you should read the documentation for security reasons.

And yes, like womble tells you, ask to your provider for a ssh access or change to other better company.

share|improve this answer
better company is always the ideal but sometimes you are in a place where you need to move existing files to new server. Thanks for the input :) – jnolte Jul 28 '11 at 20:59

Your Answer


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.