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.

In my region, we have proxy to connect to the internet. So, we don't have direct connection.I dont have control panel on my website. To upload my files to the server through SFTP, I was using WinsCP along with Your freedom. But since, your freedom allows only for 6 hrs a day. Its really painful to upload the files

So, can anyone suggest of installing some software on my server like (https) , so that I can upload the files through my browser. Please help in this regard.

Please comment if the question is unclear. I will try to edit it.

Thanks :)

share|improve this question
    
Do you have shell access to your server and do you have root privileges ? Otherwise I suggest running your ssh port on a non-blocked port range . –  Lucas Kauffman Aug 13 '11 at 19:13
    
Yeah, I have root privileges –  Prashant Singh Aug 13 '11 at 19:16

2 Answers 2

up vote 1 down vote accepted

You can always write a PHP script to handle uploads.

share|improve this answer
    
Yup... Nice idea.. Can u give some code for uploading files , where i can customize according to the folder to which I wish to upload a file –  Prashant Singh Aug 13 '11 at 19:29
    
Google is your friend :) ... try searching for "upload file using php" (without quotes). Thus, you can see many examples and adopt one of your liking. –  pepoluan Aug 13 '11 at 19:46

Try this if you have root :

iptables -A PREROUTING -t nat -p tcp -i eth0 --dport *PORT* -j DNAT --to 127.0.0.1:22

Where PORT is a port you can access normally through your proxy, what will happen is that on your server you will get rerouted to that port FROM within your server. So basically you bypass your proxy.

Most of the time I use the backup http port 8080 because it is open on most proxys. If you issue this command you can just scp/sftp to port 8080 and you will be able to upload your files.(eth0 is the NIC to which you normally connect)

share|improve this answer

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.