Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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 http://phpshell.sourceforge.net/ 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

 
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.